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

Disassembly:
push 0xffffffffffffffff
push 0x6529d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, ebx
mov dword [esp + 0x20], ebp
call fcn.004f20f0
test eax, eax
je 0x4d01f2
mov ecx, dword [ebp + 4]
call fcn.004957e0
mov eax, dword [esp + 0x144]
mov esi, dword [esp + 0x140]
push eax
push esi
mov ecx, ebp
call fcn.004cf750
lea eax, [ebp + 8]
lea ecx, [esp + 0xd8]
push eax
push ecx
mov ecx, esi
call fcn.004a4990
mov edx, dword [ebp + 4]
add edx, 0x1c
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0xd8]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], ecx
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
cmp edx, eax
jle 0x4cf87e
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jg 0x4cf88b
mov ecx, dword [ebp + 4]
call fcn.004957f0
jmp 0x4d01f2
lea esi, [ebx + 0xc]
mov ecx, 6
lea edi, [esp + 0x68]
lea eax, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x6c]
call fcn.004a29c0
fld dword [ebx + 0x2c]
fcomp dword [0x66419c]
lea esi, [ebx + 0x2c]
mov dword [esp + 0x4c], 0
fnstsw ax
test ah, 0x40
je 0x4cf90d
fld dword [ebx + 0x34]
fcomp dword [0x66419c]
fnstsw ax
test ah, 0x40
je 0x4cf90d
fld dword [ebx + 0x30]
fcomp dword [ebx + 0x3c]
fnstsw ax
test ah, 0x40
je 0x4cf90d
fld dword [ebx + 0x38]
fcomp dword [ebx + 0x40]
fnstsw ax
test ah, 0x40
je 0x4cf90d
lea ecx, [esp + 0x68]
call fcn.004a26e0
test eax, eax
jne 0x4cf905
lea ecx, [esp + 0x68]
call fcn.004a26a0
test eax, eax
je 0x4cf90d
mov dword [esp + 0x4c], 1
mov ecx, esi
mov edx, dword [ecx]
mov dword [esp + 0xa0], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0xa4], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0xa8], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0xb0], eax
call fcn.004a28b0
fld dword [esp + 0xa4]
fsub dword [esp + 0xa0]
push ecx
fstp dword [esp]
call fcn.004a2d40
fld dword [esp + 0xb0]
fsub dword [esp + 0xac]
mov edi, eax
mov dword [esp + 0x1c], edi
fstp dword [esp]
call fcn.004a2d40
add esp, 4
mov dword [esp + 0x24], eax
test edi, edi
jne 0x4cf98d
mov dword [esp + 0x18], 1
test eax, eax
jne 0x4cf999
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4cfb57
mov edx, dword [esp + 0x78]
push edx
call fcn.004a2d40
mov ebp, eax
mov eax, dword [esp + 0x80]
push eax
call fcn.004a2d40
mov edi, dword [esp + 0x44]
mov ecx, eax
mov eax, edi
add esp, 8
sub eax, ebp
cdq
idiv dword [esp + 0x18]
cmp edi, ebp
mov esi, eax
jge 0x4cf9d7
dec esi
mov edi, dword [esp + 0x44]
mov eax, edi
sub eax, ebp
dec eax
cdq
idiv dword [esp + 0x18]
cmp edi, ebp
mov dword [esp + 0x14], eax
jg 0x4cf9f2
dec eax
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x40]
mov eax, ebp
sub eax, ecx
cdq
idiv dword [esp + 0x24]
cmp ebp, ecx
mov edi, eax
mov dword [esp + 0x2c], edi
jge 0x4cfa0e
dec edi
mov dword [esp + 0x2c], edi
mov ebp, dword [esp + 0x48]
mov eax, ebp
sub eax, ecx
dec eax
cdq
idiv dword [esp + 0x24]
cmp ebp, ecx
mov dword [esp + 0x1c], eax
jg 0x4cfa29
dec eax
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub eax, edi
sub ecx, esi
inc eax
inc ecx
imul eax, ecx
cmp eax, 4
jg 0x4cfedc
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4cfb33
mov edx, dword [0x67a5ec]
lea ecx, [esp + 0x68]
mov eax, edx
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
call fcn.004a2900
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x84]
push edx
call fcn.004a2d70
lea eax, [esp + 0x50]
lea ecx, [esp + 0x84]
push eax
call fcn.004a2f40
fld dword [esp + 0x84]
fsub dword [ebx + 0x2c]
sub esp, 8
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.004672c4
call fcn.0046572c
fld dword [esp + 0x90]
fsub dword [ebx + 0x30]
mov esi, eax
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.0046a805
call fcn.0046572c
fld dword [esp + 0x94]
fsub dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.004672c4
call fcn.0046572c
fld dword [esp + 0x98]
fsub dword [ebx + 0x38]
mov dword [esp + 0x34], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.0046a805
add esp, 8
call fcn.0046572c
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x28]
xor ebp, ebp
test eax, eax
jne 0x4cfc51
mov eax, dword [esp + 0x140]
test eax, eax
je 0x4cfc3b
add eax, 4
jmp 0x4cfc3d
mov ecx, dword [0x67a5ec]
lea eax, [esp + 0x68]
mov dword [esp + 0x5c], ecx
mov edx, ecx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
call fcn.004a2900
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x88]
call fcn.004a2d70
lea edx, [esp + 0x50]
lea ecx, [esp + 0x84]
push edx
call fcn.004a2f40
fld dword [esp + 0x84]
fsub dword [esi]
sub esp, 8
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.004672c4
call fcn.0046572c
fld dword [esp + 0x90]
fsub dword [ebx + 0x30]
mov esi, eax
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.0046a805
call fcn.0046572c
fld dword [esp + 0x94]
fsub dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.004672c4
call fcn.0046572c
fld dword [esp + 0x98]
fsub dword [ebx + 0x38]
mov dword [esp + 0x34], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.0046a805
add esp, 8
call fcn.0046572c
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x4cfa2d
xor eax, eax
mov ecx, dword [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.004cf5d0
mov ebp, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], esi
cmp esi, eax
jg 0x4cfdbf
imul esi, dword [esp + 0x18]
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x1c]
mov ebx, edi
cmp edi, eax
mov dword [esp + 0x10], ebx
jg 0x4cfd9c
mov eax, edi
imul eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4cfca9
fild dword [esp + 0x34]
fadd dword [esp + 0x78]
fstp dword [esp + 0x28]
fild dword [esp + 0x30]
fsubr dword [esp + 0x7c]
fstp dword [esp + 0x10]
jmp 0x4cfcd9
fild dword [esp + 0x38]
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
fmul dword [eax + 0x3c]
fstp dword [esp + 0x2c]
fild dword [esp + 0x14]
fmul dword [eax + 0x40]
lea eax, [esp + 0x2c]
push eax
fstp dword [esp + 0x18]
call fcn.004a2790
fld dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, 6
fsub dword [esp + 0x7c]
fld dword [esp + 0x28]
fsub dword [esp + 0x78]
lea esi, [edx + 8]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x60]
fadd st(1)
fstp dword [esp + 0x60]
fstp st(0)
fld dword [esp + 0x64]
fadd st(1)
mov esi, edx
fstp dword [esp + 0x64]
mov ecx, dword [esi + 4]
fstp st(0)
call fcn.004957e0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ebp
lea eax, [esp + 0x54]
push 0
push eax
push ecx
push edx
lea ecx, [esp + 0xfc]
call fcn.004962b0
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x134], 0
mov ecx, dword [eax + 0x44]
push ecx
lea ecx, [esp + 0xec]
call fcn.004964c0
mov ecx, dword [esi + 4]
call fcn.004957f0
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 0xffffffff
call fcn.00496370
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
inc ebx
add ecx, edx
cmp ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], ecx
jle 0x4cfc87
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
jle 0x4cfc6a
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
call fcn.004957f0
test ebp, ebp
je 0x4d01f2
mov dword [esp + 0x98], ebp
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x134], 4
test eax, eax
je 0x4cfe06
mov edx, dword [eax + 0x6c]
dec edx
mov dword [eax + 0x6c], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jg 0x4cfe06
push eax
call fcn.004f2630
add esp, 4
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x134], 3
test eax, eax
je 0x4cfe2f
mov edx, dword [eax + 0x24]
dec edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jg 0x4cfe2f
push eax
call fcn.004f2630
add esp, 4
mov eax, dword [ebp + 8]
mov byte [esp + 0x134], 2
test eax, eax
je 0x4cfe63
mov ecx, dword [eax + 0x18]
dec ecx
mov dword [eax + 0x18], ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
test eax, eax
jg 0x4cfe63
test esi, esi
je 0x4cfe63
mov ecx, esi
call fcn.004947e0
push esi
call fcn.004f2630
add esp, 4
mov eax, dword [ebp + 4]
mov byte [esp + 0x134], 1
test eax, eax
je 0x4cfe97
mov ecx, dword [eax + 0x1c]
dec ecx
mov dword [eax + 0x1c], ecx
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x1c]
test eax, eax
jg 0x4cfe97
test esi, esi
je 0x4cfe97
mov ecx, esi
call fcn.004b3eb0
push esi
call fcn.004f2630
add esp, 4
mov eax, dword [ebp]
mov dword [esp + 0x134], 0xffffffff
test eax, eax
je 0x4cfece
mov ecx, dword [eax + 0x14]
dec ecx
mov dword [eax + 0x14], ecx
mov esi, dword [ebp]
mov eax, dword [esi + 0x14]
test eax, eax
jg 0x4cfece
test esi, esi
je 0x4cfece
mov ecx, esi
call fcn.004b36b0
push esi
call fcn.004f2630
add esp, 4
push ebp
call fcn.004f2630
add esp, 4
jmp 0x4d01f2
fld dword [esp + 0xa0]
fsub dword [esp + 0x78]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
push ecx
lea ecx, [ebp + 8]
push edx
fstp dword [esp + 0xb8]
fld dword [esp + 0xb0]
fsub dword [esp + 0x84]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x20]
push ebx
push ecx
push edx
fstp dword [esp + 0xb0]
call fcn.004cf3c0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4cff38
mov ecx, dword [ebp + 4]
call fcn.004957f0
jmp 0x4d01f2
mov eax, dword [esp + 0x140]
mov ecx, ebp
push eax
call fcn.004968a0
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
sub ebx, ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x9c], eax
sub ebp, edx
call fcn.004bb560
push 0
push 0
push 0x220
push ebx
push ebp
lea ecx, [esp + 0xc8]
mov dword [esp + 0x148], 5
call fcn.004bb5a0
push 0
lea ecx, [esp + 0xb8]
call fcn.004bba30
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp esi, eax
mov dword [esp + 0x30], esi
jg 0x4d01a5
imul esi, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
cmp ebx, eax
mov dword [esp + 0x34], ebx
jg 0x4d0182
mov ebp, dword [esp + 0x24]
imul ebx, ebp
mov dword [esp + 0x38], ebx
jmp 0x4cffe7
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4d0028
mov eax, dword [esp + 0x78]
push eax
call fcn.004a2d40
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x80]
mov esi, eax
mov eax, dword [esp + 0x40]
sub ecx, eax
push edx
add esi, ecx
call fcn.004a2d40
mov edx, dword [esp + 0x48]
add esp, 8
sub ebx, edx
add eax, ebx
mov ebx, dword [esp + 0x13c]
jmp 0x4d00a2
fild dword [esp + 0x30]
mov ebx, dword [esp + 0x13c]
lea eax, [esp + 0x94]
lea ecx, [esp + 0x80]
push eax
fmul dword [ebx + 0x3c]
push ecx
lea ecx, [esp + 0x70]
fstp dword [esp + 0x88]
fild dword [esp + 0x3c]
fmul dword [ebx + 0x40]
fstp dword [esp + 0x9c]
call fcn.004a2790
fld dword [esp + 0x80]
fadd dword [esp + 0xb0]
push ecx
fstp dword [esp]
call fcn.004a2d40
fld dword [esp + 0x98]
fadd dword [esp + 0x9c]
mov ecx, dword [esp + 0x40]
mov esi, eax
sub esi, ecx
fstp dword [esp]
call fcn.004a2d40
mov ecx, dword [esp + 0x44]
add esp, 4
sub eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jne 0x4d0128
cmp ebp, ecx
jne 0x4d0128
test esi, esi
jl 0x4d0163
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
sub edx, ecx
cmp esi, edx
jge 0x4d0163
test eax, eax
jl 0x4d0163
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub ecx, edx
cmp eax, ecx
jge 0x4d0163
mov edx, dword [esp + 0xc8]
imul edx, eax
mov eax, dword [esp + 0xd0]
add eax, edx
lea esi, [eax + esi*4]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4d010a
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esi], edx
jmp 0x4d0163
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x9c]
xor eax, eax
and edx, 0xffffff
mov al, byte [ecx]
shl eax, 0x18
or eax, edx
mov dword [esi], eax
jmp 0x4d0163
mov edx, dword [ebx + 0x28]
push 0
push 0
push 0
test edx, edx
push 0
je 0x4d014a
push edi
push ebp
push ecx
push eax
push esi
lea ecx, [esp + 0xd8]
call fcn.004caa70
jmp 0x4d0163
mov edx, dword [esp + 0xac]
push edx
push edi
push ebp
push ecx
push eax
push esi
lea ecx, [esp + 0xdc]
call fcn.004cceb0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
inc eax
add edx, ebp
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
jle 0x4cffe3
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
jle 0x4cffc2
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
push 0
push 0xff
push 0
push edx
lea ecx, [esp + 0xc4]
push eax
push ecx
mov ecx, esi
call fcn.004d0e30
mov ecx, dword [esi + 4]
call fcn.004957f0
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x134], 0xffffffff
call fcn.004bb630
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 0xc