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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a6090
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x68], 3
jl 0x459ec2
mov ebx, dword [esp + 0x68]
xor eax, eax
cmp ebx, eax
jle 0x4599c8
mov dword [esp + 0x68], eax
mov ebx, eax
mov edi, dword [esp + 0x6c]
cmp edi, eax
jle 0x4599d6
mov dword [esp + 0x6c], eax
mov edi, eax
mov ebp, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x40]
push ebx
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 0x38]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x459ec2
push 0
push 1
push 0
lea ecx, [esp + 0x58]
call fcn.0048af14
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0
call fcn.0048af64
push 6
mov ecx, ebp
mov byte [esp + 0x60], 1
call fcn.0048a5ca
lea edx, [esp + 0x4c]
mov ecx, ebp
push edx
mov dword [esp + 0x2c], eax
call fcn.0048a4f9
mov dword [esp + 0x20], eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call fcn.0048a4f9
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x459a63
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
push edx
push edi
push ebx
push ebp
mov ecx, esi
call fcn.0045a110
mov ebx, dword [esi + 0x68]
lea eax, [ebx*8]
push eax
call fcn.004875dc
add esp, 4
test eax, eax
je 0x459a85
dec ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x64], eax
jmp 0x459a8d
mov dword [esp + 0x64], 0
mov eax, dword [esi + 0x68]
xor ebx, ebx
test eax, eax
jle 0x459acc
mov ecx, dword [esi + 0x64]
fild dword [ecx + ebx*8]
fmul qword [esp + 0x70]
call fcn.00470a50
mov edx, dword [esp + 0x64]
mov dword [edx + ebx*8], eax
mov eax, dword [esi + 0x64]
fild dword [eax + ebx*8 + 4]
fmul qword [esp + 0x70]
call fcn.00470a50
mov ecx, dword [esp + 0x64]
inc ebx
mov dword [ecx + ebx*8 - 4], eax
mov eax, dword [esi + 0x68]
cmp ebx, eax
jl 0x459a96
mov ebx, vtable.CRgn.0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], ebx
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x64]
push 1
push eax
push edx
mov byte [esp + 0x68], 2
call dword [0x4a91d0]
push eax
lea ecx, [esp + 0x30]
call fcn.0048aea7
lea eax, [esi + 8]
test eax, eax
je 0x459b2f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x459b2f
test eax, eax
jne 0x459b13
xor edx, edx
jmp 0x459b16
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
push 4
and eax, ecx
push edx
push eax
push ecx
call dword [0x4a91cc]
lea eax, [esi + 0x80]
xor ecx, ecx
cmp eax, ecx
je 0x459cac
cmp dword [eax + 4], ecx
je 0x459cac
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esi + 0x30]
push ecx
push ecx
push ecx
push ecx
mov byte [esp + 0x6c], 4
call dword [0x4a906c]
push eax
lea ecx, [esp + 0x38]
call fcn.0048aea7
test ebx, ebx
jle 0x459c4e
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x10]
fld qword [esp + 0x70]
fild dword [eax + ecx]
lea ebx, [eax + ecx]
fmul st(1)
call fcn.00470a50
fild dword [ebx + 4]
mov edi, eax
fmul st(1)
call fcn.00470a50
fild dword [ebx + 8]
mov dword [esp + 0x18], eax
fmul st(1)
call fcn.00470a50
fild dword [ebx + 0xc]
mov dword [esp + 0x14], eax
fmul st(1)
call fcn.00470a50
mov ecx, dword [ebx + 0x10]
push eax
test ecx, ecx
fstp st(0)
je 0x459be5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
push edi
call dword [0x4a906c]
jmp 0x459bf6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push edi
call dword [0x4a91dc]
push eax
lea ecx, [esp + 0x40]
call fcn.0048aea7
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
mov edx, dword [esp + 0x38]
push 2
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x38]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [0x4a91cc]
lea ecx, [esp + 0x3c]
call fcn.0048aefe
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, 0x14
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jne 0x459b88
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
neg eax
sbb eax, eax
push 4
and eax, ebx
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [0x4a91cc]
lea ecx, [esp + 0x34]
call fcn.0048aefe
mov ebx, vtable.CGdiObject.0
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 5
call fcn.0048aefe
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 6
call fcn.0048aefe
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x64]
push eax
call fcn.00487605
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
add esp, 4
push edi
push ecx
push edx
call dword [0x4a91e8]
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.0048a8bf
mov eax, dword [esi + 0x40]
xor ebx, ebx
test eax, eax
jle 0x459e18
mov eax, dword [esi + 0x3c]
xor edi, edi
test eax, eax
jle 0x459e08
inc eax
mov ecx, dword [esi + 0x7c]
imul eax, ebx
add eax, edi
fild dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
mov dword [esp + 0x64], eax
fmul qword [esp + 0x70]
call fcn.00470a50
mov edx, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
fild dword [edx]
fmul qword [esp + 0x70]
call fcn.00470a50
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push ecx
push eax
push edx
mov ecx, ebp
call fcn.0048a983
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x7c]
inc eax
imul eax, ebx
add eax, edi
mov dword [esp + 0x64], eax
fild dword [ecx + eax*8 + 0xc]
fmul qword [esp + 0x70]
call fcn.00470a50
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x7c]
fild dword [eax + ecx*8 + 8]
fmul qword [esp + 0x70]
call fcn.00470a50
mov edx, dword [esp + 0x1c]
mov ecx, ebp
push edx
push eax
call fcn.0048a9cf
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x7c]
inc eax
imul eax, ebx
add eax, edi
fild dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
mov dword [esp + 0x64], eax
fmul qword [esp + 0x70]
call fcn.00470a50
mov edx, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
fild dword [edx]
fmul qword [esp + 0x70]
call fcn.00470a50
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov ecx, ebp
call fcn.0048a983
mov ecx, dword [esi + 0x3c]
lea eax, [ebx + 1]
inc ecx
mov edx, dword [esi + 0x7c]
imul ecx, eax
add ecx, edi
fild dword [edx + ecx*8 + 4]
lea eax, [edx + ecx*8]
mov dword [esp + 0x64], eax
fmul qword [esp + 0x70]
call fcn.00470a50
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
fild dword [eax]
fmul qword [esp + 0x70]
call fcn.00470a50
mov ecx, dword [esp + 0x1c]
push ecx
push eax
mov ecx, ebp
call fcn.0048a9cf
mov eax, dword [esi + 0x3c]
inc edi
cmp edi, eax
jl 0x459cf0
mov eax, dword [esi + 0x40]
inc ebx
cmp ebx, eax
jl 0x459ce3
mov edi, dword [esp + 0x6c]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x459e39
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
push edx
push eax
push edi
push ebx
push ebp
mov ecx, esi
call fcn.0045a110
jmp 0x459e3d
mov ebx, dword [esp + 0x68]
push 0
mov ecx, ebp
call fcn.0048a8bf
mov ecx, dword [esp + 0x30]
neg edi
neg ebx
push edi
push ebx
push ecx
call dword [0x4a91e8]
lea ecx, [esp + 0x2c]
call fcn.0048aefe
mov edx, dword [esp + 0x20]
mov ecx, ebp
push edx
call fcn.0048a4f9
mov eax, dword [esp + 0x24]
mov ecx, ebp
push eax
call fcn.0048a4f9
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.0048a5ca
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 7
call fcn.0048aefe
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 8
call fcn.0048aefe
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], 9
call fcn.0048aefe
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 0x14