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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x18], ebx
call fcn.00412b30
mov esi, eax
call fcn.00412b20
mov dword [esp + 0x14], eax
mov eax, dword [0xe588ec]
mov edi, dword [eax + 4]
cmp edi, esi
jl 0x408816
lea edi, [esi - 1]
lea ecx, [esp + 0x2c]
call fcn.00402dc0
mov esi, vtable.CPen.0
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], 0
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 + 0xe48]
call fcn.00420814
fld qword [esi + 0xf78]
mov dword [esp + 0x10], eax
call fcn.00420814
test ax, ax
jne 0x408924
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 0xfa3399
push 1
push 2
call esi
push eax
lea ecx, [esp + 0x28]
call fcn.0043a898
push 0xff
push 1
push 0
call esi
push eax
lea ecx, [esp + 0x30]
call fcn.0043a898
mov esi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xfa3399
call esi
push eax
lea ecx, [esp + 0x38]
call fcn.0043a898
push 0xff
call esi
push eax
lea ecx, [esp + 0x40]
call fcn.0043a898
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00439eea
lea edx, [esp + 0x34]
mov ecx, esi
push edx
mov dword [esp + 0x20], eax
call fcn.00439eea
test edi, edi
mov dword [esp + 0x20], eax
jl 0x408ab4
mov eax, dword [esp + 0x14]
add eax, 0x10
inc edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edi
jmp 0x4089c1
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
fild dword [eax - 4]
fdiv qword [esp + 0x54]
fstp qword [esp + 0x44]
fild dword [eax]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
fdiv qword [esp + 0x64]
mov ecx, ebx
fstp qword [esp + 0x54]
call fcn.00407bf0
mov ecx, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x50]
push eax
push ecx
mov ecx, ebx
call fcn.00407c70
mov edx, dword [esp + 0xc]
mov ebx, eax
movsx eax, word [edx - 8]
cmp eax, 0x64
je 0x408a46
cmp eax, 0x6c
jne 0x408a9a
lea eax, [esp + 0x2c]
test eax, eax
je 0x408a2d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x408a2d
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp word [esp + 0x10], 0
push ebx
push edi
je 0x408a40
mov ecx, esi
call fcn.0043a3c0
jmp 0x408a80
lea edx, [esp + 0x70]
jmp 0x408a78
lea eax, [esp + 0x24]
test eax, eax
je 0x408a61
mov eax, dword [esp + 0x28]
test eax, eax
je 0x408a61
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp word [esp + 0x10], 0
push ebx
push edi
je 0x408a74
mov ecx, esi
call fcn.0043a3c0
jmp 0x408a80
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.0043a374
mov edx, dword [esi + 4]
lea eax, [ebx - 2]
lea ecx, [edi + 2]
push eax
add ebx, 2
push ecx
add edi, 0xfffffffe
push ebx
push edi
push edx
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 0x4089b9
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00439eea
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
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