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

Disassembly:
jmp 0x6057f0
push 0xffffffffffffffff
push 0x668788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0041093d
mov esi, eax
mov eax, dword [0x6be7b0]
push 0
push 0
mov eax, dword [eax + 0x1a40]
push 0x147
add eax, 0xe0
mov dword [esp + 0x1c], esi
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x38e]
mov edi, dword [esp + 0x70]
lea ecx, [esp + 0x3c]
mov ebp, dword [edx + eax*4]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
mov esi, dword [eax]
mov dword [esp + 0x2c], esi
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x78]
mov eax, dword [eax + 0xc]
test edx, edx
jne 0x60587d
mov esi, 0x7fffffff
mov dword [esp + 0x70], esi
jmp 0x60593f
mov edx, dword [esp + 0x74]
dec edx
cmp edx, 3
ja case.default.0x60588b
jmp dword [edx*4 + 0x605b64]
fld qword [ebp + 0x5c]
fcomp qword [0x66e938]
fnstsw ax
test ah, 0x41
jne 0x605935
mov eax, dword [ebp + 0x4c]
test eax, eax
jne 0x6058d3
fild dword [esp + 0x2c]
fcom qword [ebp + 0x5c]
fnstsw ax
test ah, 1
jne 0x6058cb
fsub qword [ebp + 0x5c]
call sub.MSVCRT.dll__ftol
mov esi, eax
mov dword [esp + 0x70], esi
jmp 0x60593f
fstp st(0)
mov dword [esp + 0x70], esi
jmp 0x60593f
fld qword [ebp + 0x5c]
call sub.MSVCRT.dll__ftol
cmp esi, eax
mov dword [esp + 0x70], eax
jl 0x6058f7
fild dword [esp + 0x70]
fadd qword [ebp + 0x5c]
call sub.MSVCRT.dll__ftol
cmp esi, eax
mov dword [esp + 0x70], eax
jge 0x6058e3
fild dword [esp + 0x70]
fsub qword [ebp + 0x5c]
call sub.MSVCRT.dll__ftol
sub esi, eax
mov dword [esp + 0x70], esi
jmp 0x60593f
mov ebx, dword [ebx + 0x1e8]
test ebx, ebx
jle 0x60586f
sub ebx, dword [esp + 0x34]
mov esi, ebx
mov dword [esp + 0x70], esi
jmp 0x60593f
mov esi, ecx
mov dword [esp + 0x70], esi
jmp 0x60593f
mov esi, dword [ebx + 0x1ec]
sub esi, eax
mov dword [esp + 0x70], esi
jmp 0x60593f
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x4c]
call fcn.0063d896
mov dword [esp + 0x4c], 0x66eaa8
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x70], 0
call fcn.004039d1
xor ecx, ecx
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x78], ecx
jle 0x6059f3
mov ebx, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolygon::ToXPolygon_class_ZPolygon_const___int__int_const]
mov ebp, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolygon::ToYPolygon_class_ZPolygon_const___int__int_const]
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
je 0x6059da
mov eax, dword [ecx + 0x1f0]
test eax, eax
jg 0x6059da
mov edx, dword [esp + 0x74]
mov eax, 0x7fffffff
dec edx
cmp edx, 3
ja case.default.0x6059a8
jmp dword [edx*4 + 0x605b74]
push 1
push esi
push edi
call ebx
jmp 0x6059c9
push 0
push esi
push edi
call ebx
jmp 0x6059c9
push 1
jmp 0x6059c5
push 0
push esi
push edi
call ebp
cmp eax, 0x80000001
je 0x605a54
cmp eax, esi
jge 0x6059da
mov esi, eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x78], ecx
jl 0x605984
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x70], esi
test esi, esi
je 0x605b37
cmp esi, 0x7fffffff
je 0x605b37
mov eax, dword [esp + 0x74]
dec eax
cmp eax, 3
mov dword [esp + 0x74], eax
ja case.default.0x605a15
jmp dword [eax*4 + 0x605b84]
fild dword [esp + 0x70]
fsub qword [ebx + 0x131f]
call sub.MSVCRT.dll__ftol
mov esi, eax
test esi, esi
jle 0x605b37
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.004037a6
mov ebx, dword [eax]
test ebx, ebx
mov ebp, dword [eax + 4]
jle 0x605a70
test byte [edi + 0x70], 1
je 0x605a70
mov cl, 1
jmp 0x605a72
lea ecx, [esp + 0x4c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CPtrArray::CPtrArray
xor eax, eax
jmp 0x605b4d
xor cl, cl
test ebp, ebp
jle 0x605a80
test byte [edi + 0x70], 2
je 0x605a80
mov al, 1
jmp 0x605a82
xor al, al
mov edx, dword [esp + 0x74]
cmp edx, 3
ja case.default.0x605a8f
jmp dword [edx*4 + 0x605b94]
test cl, cl
je 0x605aa1
mov eax, esi
cdq
idiv ebx
sub esi, edx
neg esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
lea edx, [esp + 0x14]
jmp 0x605b16
cmp esi, 0x7fffffff
jge case.default.0x605a8f
test cl, cl
je 0x605ac8
mov eax, esi
cdq
idiv ebx
sub esi, edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
push eax
jmp 0x605b17
test al, al
je 0x605ae6
mov eax, esi
cdq
idiv ebp
sub esi, edx
neg esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
push ecx
jmp 0x605b17
test al, al
je 0x605b06
mov eax, esi
cdq
idiv ebp
sub esi, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], esi
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::Offset_class_CSize_const__]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov eax, 1
jmp 0x605b4d
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov eax, 2
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc