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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x480c1e
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
push edi
mov edi, dword [esp + 0xb0]
cmp edi, ebp
mov esi, ecx
jle 0x412ac5
mov dword [esp + 0xb0], 1
mov edi, dword [esp + 0xb0]
mov eax, ebp
cdq
idiv edi
mov ecx, eax
mov eax, ebp
cdq
idiv edi
test edx, edx
je 0x412ad6
inc ecx
mov al, byte [esp + 0xb4]
test al, al
je 0x412ae6
mov edi, dword [esi + 0x70]
jmp 0x412ae9
mov edi, dword [esi + 0x6c]
mov eax, edi
cdq
idiv ebp
mov ebx, eax
mov eax, edi
cdq
idiv ebp
mov dword [esp + 0x14], ebx
test edx, edx
je 0x412b02
inc ebx
mov dword [esp + 0x14], ebx
mov edi, ecx
and edi, 0x80000001
jns 0x412b11
dec edi
or edi, 0xfffffffe
inc edi
mov eax, ecx
lea ecx, [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov eax, dword [esp + 0xa8]
imul ebx, edi
cdq
idiv ebx
mov dword [esp + 0x6c], eax
call fcn.0047d337
xor ebx, ebx
push ebx
mov dword [esp + 0xa0], ebx
call dword [0x483064]
push eax
lea ecx, [esp + 0x50]
call fcn.0047d3ee
mov al, byte [esp + 0xb4]
test al, al
je 0x412b5f
mov dword [esp + 0x34], ebp
jmp 0x412b69
mov ebx, ebp
mov dword [esp + 0x34], 0
call dword [0x48359c]
test edi, edi
mov dword [esp + 0x20], eax
jle 0x412f07
mov ebp, dword [0x4830a8]
xor eax, eax
mov dword [esp + 0x2c], edi
mov cl, byte [esp + 0xb4]
lea edi, [esi + 0x5c]
test cl, cl
mov ecx, dword [edi]
je 0x412bf9
mov edx, dword [esi + 0x60]
mov dword [esp + 0x3c], ecx
add edx, eax
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x4c]
add ecx, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xb0]
add edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [edi]
mov dword [esp + 0x5c], edx
lea edx, [eax + ecx]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], edx
imul eax, dword [esp + 0xac]
sub eax, edx
mov edx, dword [esi + 0x60]
add eax, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x60], eax
add eax, ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
jmp 0x412c65
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x3c], edx
add edx, ecx
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x58]
sub edx, ecx
mov ecx, dword [esi + 0x60]
add edx, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb0]
add edx, eax
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0xac]
mov dword [esp + 0x38], edx
sub eax, edx
mov edx, dword [edi]
add eax, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
add eax, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
xor ecx, ecx
mov eax, vtable.CRgn.0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x9c], 2
push eax
call dword [0x4830b4]
push eax
lea ecx, [esp + 0x28]
call fcn.0047da84
lea ecx, [esp + 0x5c]
push ecx
call dword [0x4830b4]
push eax
lea ecx, [esp + 0x1c]
call fcn.0047da84
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
neg ecx
neg eax
push ecx
lea edx, [esp + 0x40]
push eax
push edx
call dword [0x483510]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
neg ecx
neg eax
push ecx
push eax
lea eax, [esp + 0x64]
push eax
call dword [0x483510]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x412eab
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
neg ecx
mov dword [esp + 0x78], ecx
mov ecx, ebx
neg ecx
mov dword [esp + 0x70], ecx
mov ecx, esi
call fcn.00415d70
mov edx, dword [esp + 0x50]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x4c]
push eax
neg ecx
sbb ecx, ecx
and ecx, edx
push ecx
call dword [0x483060]
lea ecx, [esp + 0x24]
push 5
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], eax
call fcn.0047d8fc
lea edx, [esp + 0x18]
push 2
push edx
lea ecx, [esp + 0x54]
call fcn.0047d8fc
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x4c]
push edi
push eax
mov ecx, dword [esi + ecx*4 + 0x80]
lea eax, [esp + 0x54]
push eax
call fcn.0040ac50
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x74]
push edx
push eax
call dword [0x483060]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
neg eax
neg ecx
push eax
mov eax, dword [esp + 0x2c]
push ecx
push eax
call ebp
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
neg eax
neg ecx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
call ebp
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x24]
push 5
push edx
call fcn.0047d8fc
mov ecx, dword [esp + 0xa4]
lea eax, [esp + 0x18]
push 2
push eax
call fcn.0047d8fc
mov edx, dword [esi + 0x6c]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x84], eax
add edx, eax
mov eax, dword [esi + 0x70]
mov dword [esp + 0x8c], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x88], ecx
add eax, ecx
mov ecx, dword [edi]
mov dword [esp + 0x90], eax
sub ecx, edx
mov dword [esp + 0x7c], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x60]
add edx, eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0xa4]
lea ecx, [esp + 0x84]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00415c30
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esi + 0x38]
add ecx, ebx
push eax
mov eax, dword [esp + 0x2c]
push ecx
push eax
call ebp
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esi + 0x38]
sub ecx, ebx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
call ebp
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push edx
push ebx
push eax
call dword [0x483510]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
call dword [0x483510]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
add edx, ecx
mov dword [esp + 0x20], edx
call dword [0x48359c]
cmp dword [esp + 0x20], eax
jbe 0x412e9c
call dword [0x48359c]
cmp dword [esp + 0x20], eax
ja 0x412e90
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x412cfe
lea ecx, [esp + 0x24]
call fcn.0047dadb
lea ecx, [esp + 0x18]
call fcn.0047dadb
mov edi, vtable.CGdiObject.0
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 3
call fcn.0047dadb
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 4
call fcn.0047dadb
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
dec ecx
mov byte [esp + 0x9c], 0
mov dword [esp + 0x2c], ecx
jne 0x412b87
lea ecx, [esp + 0x4c]
call fcn.0047d456
mov eax, dword [esi + 0x40]
lea edx, [esi + 0x4c]
push 0
push edx
mov ecx, dword [esi + eax*4 + 0x80]
lea edx, [esi + 0x5c]
push ecx
push edx
mov ecx, esi
call fcn.00415d70
mov ecx, eax
call fcn.0040af00
lea ecx, [esp + 0x4c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0047d46c
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 0x14