Function at 0x4a0f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6a7a
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x512000]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x512000]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov edx, dword [ebx]
lea eax, [ebx + 0x6c]
push eax
call dword [edx + 0x54]
mov esi, dword [0x4c8294]
push 0x3e9
push dword [ebx + 0x2c]
call esi
mov edx, dword [ebx + 0x7c]
lea ecx, [ebx + 0x7c]
push eax
call dword [edx + 0x10]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 0
push 0x1307
push dword [ebx + 0xa8]
mov dword [esp + 0x3c], 0x5016d8
call dword [0x4c82e0]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 1
push 0x1307
push dword [ebx + 0xa8]
mov dword [esp + 0x3c], 0x5016f4
call dword [0x4c82e0]
push 0x53da70
push 0x98
call fcn.004abfa1
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x118], 0
test eax, eax
je 0x4a1028
push ebx
mov ecx, eax
call fcn.0049ee50
jmp 0x4a102a
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
push 0x3e9
push dword [ebx + 0x2c]
mov dword [ebx + 0xf8], eax
call esi
mov esi, dword [ebx + 0xf8]
push esi
push 0x49edb0
push eax
movzx eax, word [esi + 0x68]
push eax
push dword [0x54ed2c]
call dword [0x4c82a0]
lea ecx, [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0xf8]
push ecx
lea ecx, [ebx + 0xe4]
mov dword [esp + 0x20], eax
call fcn.00442c90
push 0x53da70
push 0xa8
call fcn.004abfa1
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x118], 1
test eax, eax
je 0x4a10ae
mov ecx, eax
call fcn.004a18e0
jmp 0x4a10b0
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
push 0x3e9
push dword [ebx + 0x2c]
mov dword [ebx + 0xfc], eax
call dword [0x4c8294]
mov esi, dword [ebx + 0xfc]
push esi
push 0x49edb0
push eax
movzx eax, word [esi + 0x68]
push eax
push dword [0x54ed2c]
call dword [0x4c82a0]
mov dword [esi + 0x2c], eax
lea ecx, [ebx + 0xe4]
mov eax, dword [ebx + 0xfc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00442c90
mov ecx, dword [ebx + 0xf8]
lea edx, [esp + 0x6c]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x6c], xmm0
push edx
movdqu xmmword [esp + 0x80], xmm0
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [ebx + 0x7c]
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [ebx + 0x7c]
call dword [eax + 0x54]
lea eax, [esp + 0x7c]
push eax
push 0
push 0x1328
push dword [ebx + 0xa8]
call dword [0x4c82e0]
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x6c]
sub eax, dword [esp + 0x84]
xorps xmm0, xmm0
sub eax, dword [esp + 0x6c]
add eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
sub edi, dword [esp + 0x88]
sub edi, dword [esp + 0x70]
add edi, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], edi
movdqu xmmword [esp + 0x90], xmm0
call dword [eax + 0x58]
push 0x68
lea eax, [esp + 0xa0]
push 0
push eax
call fcn.004ae540
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
call dword [eax + 0x68]
mov esi, eax
mov dword [esp + 0x118], 2
push 0
push 0
mov dword [esp + 0xa4], vtable.CWindow.0
mov dword [esp + 0xa8], vtable.CWinHookList.0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
call fcn.0046bfa0
mov dword [esp + 0xa4], eax
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb0], vtable.CCriticalSection.0
call dword [0x4c81c0]
mov dword [esp + 0xc8], esi
xor eax, eax
mov word [esp + 0x100], ax
lea eax, [esp + 0x8c]
mov dword [esp + 0x118], 3
push eax
push esi
call dword [0x4c8240]
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
add eax, edi
mov ebx, dword [ebx]
push 1
push eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
add eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x84]
sub eax, dword [esp + 0x9c]
sub eax, edi
mov esi, dword [esp + 0x24]
add eax, dword [esp + 0x7c]
mov ecx, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x84]
sub eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x7c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x9c]
push eax
call dword [ebx + 0x2c]
mov ecx, dword [esi + 0xf0]
cmp ecx, 0xffffffff
je 0x4a12d5
mov eax, dword [esi + 0xe4]
push 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [esi + 0xe4]
push 5
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, esi
mov dword [esi + 0xf0], 0
call fcn.004a13a0
push 0x2c
lea eax, [esp + 0x44]
mov dword [esp + 0x40], 0x30
push 0
push eax
call fcn.004ae540
add esp, 0xc
mov dword [esp + 0x40], 0x10
push 0x3f3
push dword [esi + 0x2c]
call dword [0x4c8294]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x4c]
push eax
push dword [esi + 0x2c]
mov dword [esp + 0x68], 0x501710
mov dword [esp + 0x50], 0
call dword [0x4c8238]
lea eax, [esp + 0x3c]
push eax
push 0
push 0x404
push dword [esi + 0xf4]
call dword [0x4c82e0]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x9c], vtable.CWindow.0
call fcn.0049deb0
mov eax, 1
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.004abee8
mov esp, ebp
pop ebp
ret