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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00430a4f
lea ecx, [esi + 0x60]
mov ebx, eax
push ecx
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.00430bcb
push 0xa
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.00430c9c
mov ecx, dword [esi + 0x88]
mov edi, eax
mov eax, dword [esi + 0x84]
push ecx
lea edx, [esp + 0x10]
push eax
push edx
mov ecx, ebx
call fcn.00431055
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x7c]
push ecx
push eax
mov ecx, ebx
call fcn.004310a1
push edi
mov ecx, ebx
call fcn.00430c9c
mov ecx, dword [esi + 0x70]
lea edi, [esi + 0x68]
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, edi
call fcn.0040bb50
mov edx, dword [esi + 0x6c]
mov eax, dword [edi + 8]
push edx
push 1
push eax
mov ecx, edi
call fcn.0040bd00
mov eax, dword [edi + 4]
test eax, eax
jne 0x40ad05
mov dword [esp + 0xc], eax
jmp 0x40ad11
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
lea edx, [ecx*8]
push edx
call fcn.00429115
add esp, 4
test eax, eax
je 0x40ad38
mov ecx, dword [esp + 0xc]
dec ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0xc], eax
jmp 0x40ad40
mov dword [esp + 0xc], 0
xor eax, eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40ad71
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 3
cmp eax, edx
jae 0x40ad71
mov edx, dword [esi + 0x6c]
mov ecx, dword [esp + 0xc]
mov ebx, dword [edx + eax*8]
mov dword [ecx + eax*8], ebx
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + eax*8 + 4]
mov dword [ecx + eax*8 + 4], edx
inc eax
jmp 0x40ad42
lea eax, [esi + 0x40]
mov ecx, ebx
push eax
call fcn.00430bcb
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x40ad8b
xor eax, eax
jmp 0x40ad93
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Polygon]
mov eax, dword [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00430bcb
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.00430bcb
mov edx, dword [esp + 0xc]
push edx
call fcn.0042913e
mov al, byte [esp + 0x1f]
add esp, 4
xor ebx, ebx
mov byte [esi + 0x78], 0
mov byte [esp + 0x1c], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x40ae32
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
cmp ebx, ecx
jae 0x40ae32
mov eax, dword [esi + 0x6c]
sub esp, 8
sub esp, 8
lea ecx, [esp + 0x7c]
fild dword [eax + ebx*8 + 4]
fstp qword [esp + 8]
fild dword [eax + ebx*8]
fstp qword [esp]
call fcn.00404610
mov edx, dword [esp + 0x24]
push eax
push 1
push edx
lea ecx, [esp + 0x28]
call fcn.00409930
lea ecx, [esp + 0x6c]
call fcn.00404bf0
inc ebx
jmp 0x40ade2
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
call fcn.00402e60
push 0x40
call fcn.00429115
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x40ae74
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
mov ecx, dword [esi + 0x50]
push edx
mov edx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x4c]
push edx
push ecx
lea edx, [esp + 0x44]
push 1
push edx
mov ecx, eax
call fcn.00405510
jmp 0x40ae76
xor eax, eax
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00408a00
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
cmp esi, edi
je 0x40ae9e
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
add esi, 0x24
cmp esi, edi
jne 0x40ae8b
mov esi, dword [esp + 0x50]
push esi
call fcn.0042913e
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.004029c0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x40aedb
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 4]
add esi, 0x24
cmp esi, edi
jne 0x40aec8
mov esi, dword [esp + 0x20]
push esi
call fcn.0042913e
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8