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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57e646
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x490edf
mov ecx, dword [eax + 0x12c]
mov eax, dword [esp + 0x148]
mov edx, dword [esp + 0x14c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x154]
lea ebp, [esi + 0x44]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x134]
mov eax, ebp
mov dword [esp + 0x20], ecx
mov dword [eax], edx
mov edx, dword [esp + 0x138]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x13c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x140]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x144]
mov ebx, dword [ebp]
mov edx, dword [esi + 0x4c]
sub ebx, eax
sub edx, eax
cmp ecx, edi
mov dword [ebp], ebx
mov dword [esi + 0x4c], edx
jne 0x490950
mov eax, ebp
mov ecx, dword [eax]
mov dword [esp + 0x134], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x138], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x13c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x140], edx
lea ecx, [esp + 0x64]
call fcn.00441c60
mov dword [esp + 0x64], 0x590c20
mov dword [esp + 0x8c], edi
mov ebx, dword [esp + 0x130]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x128], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], esi
call fcn.0043bc50
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x74]
cmp ecx, 1
mov dword [esp + 0x28], eax
mov edi, dword [edx + 0x11c]
mov dword [esp + 0x4c], 1
jne 0x4909bb
mov eax, dword [edi + 0x268]
and al, 0xfb
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x4c], eax
cmp ecx, 2
mov dword [esp + 0x48], 1
jne 0x4909d9
mov eax, dword [edi + 0x26c]
and al, 0xfb
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x48], eax
push edx
lea ecx, [esp + 0xa4]
call fcn.0048afb0
mov eax, dword [esi + 0x3c]
lea edx, [esp + 0xa0]
push edx
mov byte [esp + 0x12c], 1
mov ecx, dword [eax + 0x108]
call fcn.0048b580
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x490a1b
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x70]
push eax
push ebp
mov ecx, ebx
call fcn.0056837a
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x6c]
mov ebx, dword [ebp]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esi + 0x4c]
test edx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x490a5f
lea ebp, [esp + 0x134]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
lea ebx, [eax + ecx]
mov dword [esp + 0x58], ebx
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x490de9
mov ebx, dword [esp + 0x134]
add ebx, ecx
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x24]
dec ebx
test ebx, ebx
mov dword [esp + 0x40], ebx
jl 0x490db7
mov ecx, edx
sub ecx, ebx
dec ecx
mov dword [esp + 0x24], ecx
jmp 0x490abe
mov edx, dword [esp + 0x20]
xor eax, eax
cmp ebx, edx
setl al
test eax, eax
mov dword [esp + 0x44], eax
je 0x490ad5
mov eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x490adb
mov dword [esp + 0x2c], ebx
mov eax, ebx
test eax, eax
jl 0x490af4
cmp eax, dword [esp + 0xcc]
jge 0x490af4
mov edx, dword [esp + 0xc8]
mov ebp, dword [edx + eax*4]
jmp 0x490af6
xor ebp, ebp
test ebp, ebp
je 0x490d9d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
test eax, eax
je 0x490d99
lea ecx, [esp + 0xf0]
push ecx
mov ecx, ebp
call fcn.00440980
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x490b39
mov ecx, dword [esp + 0x60]
cmp ecx, eax
jle 0x490b39
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x100]
mov ecx, ebp
push edx
call fcn.00440980
mov eax, dword [eax + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x90]
push ecx
lea eax, [esp + 0x114]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x490d99
mov eax, dword [esp + 0x44]
test eax, eax
je 0x490bc4
mov eax, dword [esi + 0x3c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x70]
mov ebx, dword [esp + 0x130]
push eax
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0056837a
mov ecx, dword [esp + 0x10]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push esi
push ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, edi
call dword [edx + 0x74]
jmp 0x490bcb
mov ebx, dword [esp + 0x130]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
dec eax
mov ecx, ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
call fcn.00440a10
test eax, eax
je 0x490c26
mov edx, dword [esp + 0x10]
sub esp, 0x10
mov ecx, esp
mov eax, dword [edi]
push ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 0xc], edx
mov ecx, edi
call dword [eax + 0x90]
mov ecx, dword [esi + 0x38]
push ebp
call fcn.00441630
mov ebx, eax
test ebx, ebx
je 0x490c8f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
mov ecx, ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.004408c0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], ebx
mov edx, dword [ebx]
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
call dword [edx + 0x50]
mov ecx, dword [ebp + 0xa4]
cmp ecx, eax
jle 0x490c89
mov eax, ecx
mov dword [ebp + 0xa4], eax
mov eax, dword [esi + 0x74]
cmp eax, 1
jne 0x490cdb
mov eax, dword [ebp + 0xc8]
test eax, eax
je 0x490d6f
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x144]
push eax
mov ecx, edi
call dword [edx + 0x78]
jmp 0x490d6f
cmp eax, 2
jne 0x490d6f
mov eax, dword [ebp + 0xcc]
test eax, eax
je 0x490d1f
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x144]
push eax
mov ecx, edi
call dword [edx + 0x78]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x490d67
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov ebx, dword [esp + 0x4c]
mov ebp, esp
mov edx, eax
mov dword [esp + 0xfc], ebx
mov ebx, dword [edi]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x48]
push 0
dec eax
mov dword [ebp + 4], edx
mov dword [esp + 0x48], eax
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x144]
push ecx
mov ecx, edi
mov dword [ebp + 0xc], eax
call dword [ebx + 0x78]
mov dword [esp + 0x48], 1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
dec edx
cmp eax, edx
jne 0x490d95
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x130]
mov edx, dword [edi]
push esi
push eax
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x7c]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
dec ebx
inc ecx
test ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ecx
jge 0x490aba
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x490de9
sub esp, 0x10
mov edx, dword [edi]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x140]
push ecx
mov ecx, edi
call dword [edx + 0x8c]
mov ecx, dword [esi + 0x3c]
call fcn.0043c880
mov ecx, dword [edi + 0x370]
mov dword [esp + 0x44], eax
mov ebp, dword [esi + 0x50]
xor eax, eax
test ecx, ecx
setne al
xor edx, edx
mov ebx, dword [esi + 0x4c]
test eax, eax
mov eax, dword [esi + 0x48]
mov ecx, esi
setne dl
sub ebp, edx
mov edx, dword [esi]
mov dword [esp + 0x28], eax
call dword [edx + 0x68]
test eax, eax
je 0x490e62
mov eax, dword [esp + 0x44]
test eax, eax
je 0x490e62
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x22c]
test ecx, ecx
je 0x490e62
mov ecx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x140]
push eax
call dword [edx + 0xa4]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x490e93
mov ecx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push 0
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x144]
push eax
call dword [edx + 0x78]
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + 0x378]
test eax, eax
je 0x490eb7
mov eax, dword [esp + 0x144]
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x4c]
add edx, eax
add ecx, eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x4c], ecx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x128], 0
call fcn.0048b090
lea ecx, [esp + 0x64]
mov dword [esp + 0x128], 0xffffffff
call fcn.00441d20
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x11c
ret 0x28