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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4514e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.00412b30
mov esi, eax
call fcn.00412b20
mov ecx, dword [0xe588f0]
mov dword [esp + 0x14], eax
mov eax, dword [0xe588ec]
mov ebx, dword [ecx + 0x3c]
mov edi, dword [eax + 4]
cmp ebx, esi
jl 0x40847f
xor edi, edi
lea ebx, [esi - 1]
xor eax, eax
mov esi, vtable.CPen.0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], eax
call fcn.00402dc0
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 1
call fcn.00402dc0
mov esi, vtable.CBrush.0
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 2
call fcn.00402dc0
mov dword [esp + 0x34], esi
mov esi, dword [0x1647d20]
mov byte [esp + 0x80], 3
fld qword [esi + 0x4158]
fstp qword [esp + 0x54]
fld qword [esi + 0x41f0]
fstp qword [esp + 0x5c]
fld qword [esi + 0xdb0]
call fcn.00420814
fld qword [esi + 0xee0]
mov dword [esp + 0x10], eax
call fcn.00420814
test ax, ax
jne 0x408586
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 4
call fcn.0043a8ef
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 5
call fcn.0043a8ef
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 6
call fcn.0043a8ef
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x2c], vtable.CPen.0
call fcn.00402df0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.GDI32.dll_CreatePen]
push 0xffff
push 1
push 2
call esi
push eax
lea ecx, [esp + 0x28]
call fcn.0043a898
push 0xff00
push 1
push 0
call esi
push eax
lea ecx, [esp + 0x30]
call fcn.0043a898
mov esi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xffff
call esi
push eax
lea ecx, [esp + 0x38]
call fcn.0043a898
push 0xff00
call esi
push eax
lea ecx, [esp + 0x40]
call fcn.0043a898
mov esi, dword [ebp + 8]
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00439eea
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00439eea
cmp edi, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x408608
xor edi, edi
cmp edi, ebx
jg 0x408723
mov edx, dword [esp + 0x14]
lea ecx, [edi + edi*4]
sub ebx, edi
lea eax, [edx + ecx*4 + 0x10]
inc ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ebx
jmp 0x40862c
mov eax, dword [esp + 0xc]
fild dword [eax - 4]
mov ebx, dword [esp + 0x18]
fdiv qword [esp + 0x54]
fstp qword [esp + 0x44]
fild dword [eax]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
fdiv qword [esp + 0x64]
mov ecx, ebx
fstp qword [esp + 0x54]
call fcn.00407bf0
mov edx, dword [esp + 0x50]
mov edi, eax
mov eax, dword [esp + 0x4c]
push edx
push eax
mov ecx, ebx
call fcn.00407c70
mov ecx, dword [esp + 0xc]
mov ebx, eax
movsx eax, word [ecx - 8]
cmp eax, 0x64
je 0x4086b5
cmp eax, 0x6c
jne 0x408709
lea edx, [esp + 0x2c]
test edx, edx
je 0x40869c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40869c
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp word [esp + 0x10], 0
push ebx
push edi
je 0x4086af
mov ecx, esi
call fcn.0043a3c0
jmp 0x4086ef
lea ecx, [esp + 0x70]
jmp 0x4086e7
lea edx, [esp + 0x24]
test edx, edx
je 0x4086d0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4086d0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp word [esp + 0x10], 0
push ebx
push edi
je 0x4086e3
mov ecx, esi
call fcn.0043a3c0
jmp 0x4086ef
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.0043a374
mov ecx, dword [esi + 4]
lea edx, [ebx - 2]
lea eax, [edi + 2]
push edx
add ebx, 2
push eax
add edi, 0xfffffffe
push ebx
push edi
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
add ecx, 0x14
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
jne 0x408628
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00439eea
mov eax, dword [esp + 0x20]
mov ecx, esi
push eax
call fcn.00439eea
lea ecx, [esp + 0x2c]
call fcn.0043a8ef
lea ecx, [esp + 0x24]
call fcn.0043a8ef
lea ecx, [esp + 0x34]
call fcn.0043a8ef
lea ecx, [esp + 0x3c]
call fcn.0043a8ef
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 7
call fcn.0043a8ef
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 8
call fcn.0043a8ef
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 9
call fcn.0043a8ef
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 0xa
call fcn.0043a8ef
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4