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

Disassembly:
push 0xffffffffffffffff
push 0x625cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
mov ebx, dword [esp + 0xf8]
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, ebx
mov dword [esp + 0x34], ebp
call fcn.004e2bb0
test eax, eax
je 0x4c63d4
mov ecx, dword [ebp + 4]
call fcn.00490b50
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x4c5eab
mov esi, dword [esp + 0x108]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x30]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [ebp + 4]
call fcn.00490c70
jmp 0x4c5ecd
mov eax, dword [esp + 0x108]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, dword [ebp + 4]
call fcn.00490c30
mov esi, dword [esp + 0x108]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xe4]
push ecx
push edx
mov ecx, esi
call fcn.0049d810
mov eax, dword [ebp + 4]
add eax, 0x1c
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xe4]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x4c5f31
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jg 0x4c5f3e
mov ecx, dword [ebp + 4]
call fcn.00490b60
jmp 0x4c63d4
mov edx, dword [ebp + 8]
lea esi, [ebx + 0xc]
mov ecx, 6
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [esp + 0x6c]
call fcn.0049b5a0
mov eax, dword [0x646db0]
lea edx, [esp + 0x68]
mov ecx, eax
push edx
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
call fcn.0049b4e0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x80]
push eax
call fcn.0049b930
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x84]
call fcn.0049bb00
fld dword [esp + 0x80]
fsub dword [ebx + 0x2c]
sub esp, 8
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.0046217a
call fcn.004605e0
fld dword [esp + 0x8c]
fsub dword [ebx + 0x30]
mov esi, eax
mov dword [esp + 0x34], esi
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.004656b5
call fcn.004605e0
fld dword [esp + 0x90]
fsub dword [ebx + 0x34]
mov edi, eax
mov dword [esp + 0x4c], edi
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.0046217a
call fcn.004605e0
fld dword [esp + 0x94]
fsub dword [ebx + 0x38]
mov dword [esp + 0x38], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.004656b5
add esp, 8
call fcn.004605e0
cmp esi, edi
mov dword [esp + 0x48], eax
jne 0x4c60f6
cmp dword [esp + 0x30], eax
jne 0x4c60f6
fild dword [esp + 0x2c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
fmul dword [ebx + 0x3c]
lea ecx, [esp + 0x70]
fstp dword [esp + 0x1c]
fild dword [esp + 0x38]
fmul dword [ebx + 0x40]
fstp dword [esp + 0x18]
call fcn.0049b380
fld dword [esp + 0x14]
fsub dword [esp + 0x78]
mov esi, dword [ebp + 8]
mov ecx, 6
lea edi, [esp + 0xa8]
mov eax, dword [ebp]
rep movsd dword es:[edi], dword [esi]
fadd dword [esp + 0xb8]
fstp dword [esp + 0xb8]
fld dword [esp + 0x10]
fsub dword [esp + 0x7c]
fadd dword [esp + 0xbc]
fstp dword [esp + 0xbc]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp + 4]
lea eax, [esp + 0xac]
push edx
push eax
push ecx
mov ecx, dword [ebx + 0x44]
call fcn.0049ebc0
mov ecx, dword [ebp + 4]
call fcn.00490b60
jmp 0x4c63d4
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov edx, dword [ebx + 0x38]
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x5c], edx
call fcn.0049b490
fld dword [esp + 0x50]
fsub dword [esp + 0x4c]
sub esp, 8
fstp qword [esp]
call fcn.004656b5
call fcn.004605e0
fld dword [esp + 0x60]
fsub dword [esp + 0x5c]
mov dword [esp + 0x20], eax
fstp qword [esp]
call fcn.004656b5
add esp, 8
call fcn.004605e0
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c6166
mov dword [esp + 0x18], 1
test edi, edi
jne 0x4c616f
mov edi, 1
fld dword [esp + 0x4c]
fsub dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp]
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 0x20]
push edi
fstp dword [esp + 0x68]
fld dword [esp + 0x5c]
fsub dword [esp + 0x84]
push edx
mov edx, dword [eax + 0x18]
push ebx
push ecx
push edx
fstp dword [esp + 0x7c]
call fcn.004c5c90
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x4c61bf
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
call fcn.00490b60
jmp 0x4c63d4
mov ecx, dword [esp + 0x108]
call fcn.0049d630
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, edx
push 0
push 0x220
push ecx
push eax
lea ecx, [esp + 0xd0]
call fcn.004b2de0
push 0
lea ecx, [esp + 0xc4]
mov dword [esp + 0x100], 0
call fcn.004b3310
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
cmp esi, eax
mov dword [esp + 0x14], esi
jg 0x4c6386
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x4c6371
fild dword [esp + 0x14]
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fmul dword [ebx + 0x3c]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x70]
fstp dword [esp + 0x44]
fild dword [esp + 0x18]
fmul dword [ebx + 0x40]
fstp dword [esp + 0x48]
call fcn.0049b380
fld dword [esp + 0x3c]
fadd dword [esp + 0x60]
push ecx
fstp dword [esp]
call fcn.0049b900
fld dword [esp + 0x44]
fadd dword [esp + 0x68]
mov esi, eax
mov eax, dword [esp + 0x20]
sub esi, eax
fstp dword [esp]
call fcn.0049b900
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
sub eax, edx
cmp edi, 1
jne 0x4c6324
cmp ecx, 1
jne 0x4c6324
test esi, esi
jl 0x4c635c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp esi, edx
jge 0x4c635c
test eax, eax
jl 0x4c635c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub ecx, edx
cmp eax, ecx
jge 0x4c635c
mov edx, dword [esp + 0xd4]
mov ecx, dword [ebx + 0x28]
imul edx, eax
mov eax, dword [esp + 0xdc]
add eax, edx
test ecx, ecx
lea eax, [eax + esi*4]
je 0x4c6309
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
jmp 0x4c635c
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov cl, byte [edx]
mov edx, dword [esp + 0x2c]
shl ecx, 0x18
and edx, 0xffffff
or ecx, edx
mov dword [eax], ecx
jmp 0x4c635c
mov edx, dword [ebx + 0x28]
push 0
push 0
push 0
test edx, edx
push 0
je 0x4c6346
push ebp
push ecx
push edi
push eax
push esi
lea ecx, [esp + 0xe4]
call fcn.004c2180
jmp 0x4c635c
mov edx, dword [esp + 0x3c]
push edx
push ebp
push ecx
push edi
push eax
push esi
lea ecx, [esp + 0xe8]
call fcn.004c4040
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x4c6249
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x4c622d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
push 0
push 0xff
push 0
push eax
lea edx, [esp + 0xd0]
push ecx
push edx
mov ecx, esi
call fcn.004c6fe0
mov ecx, dword [esi + 4]
call fcn.00490b60
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
lea ecx, [esp + 0xc0]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004b2ea0
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf0
ret 0xc