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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4704a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push edi
mov eax, dword [0x48b670]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
fldz
xor ebx, ebx
fstp qword [esp + 0x2c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], vtable.CPen.0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], vtable.CBrush.0
mov byte [esp + 0x50], 1
mov eax, dword [esi + 0xa8]
push eax
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x28]
call fcn.00418c8c
mov eax, dword [esi + 0xa4]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x20]
call fcn.00418c8c
mov edi, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.00418d77
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00418d77
fld qword [esi + 0x78]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ebx
call fcn.00433b20
fld qword [esi + 0x80]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ebx
call fcn.00433b20
cmp dword [esi + 0x54], ebx
mov dword [esp + 0x3c], eax
jle 0x40174c
mov eax, dword [esi + 0x94]
test al, 1
je 0x401680
cmp ebx, dword [esi + 0x5c]
jne 0x401669
mov edx, dword [esi]
mov edx, dword [edx + 0x150]
lea eax, [esp + 0x34]
push eax
push edi
mov ecx, esi
call edx
jmp 0x401717
mov eax, dword [esi]
mov edx, dword [eax + 0x14c]
lea ecx, [esp + 0x34]
push ecx
push edi
mov ecx, esi
call edx
jmp 0x401717
test al, 2
je 0x401717
fild dword [esi + 0x98]
fiadd dword [esi + 0x5c]
fidiv dword [esi + 0x9c]
fimul dword [esi + 0x54]
fld st(0)
call fcn.00433b20
fsub qword [0x47cb68]
mov edi, eax
dec edi
mov dword [esp + 0x10], edi
fisub dword [esp + 0x10]
fmul qword [esi + 0x80]
call fcn.00433b20
cmp ebx, edi
mov dword [esp + 0x10], eax
jg 0x4016dc
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x150]
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
call eax
jmp 0x401714
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x14c]
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call edx
inc edi
cmp ebx, edi
jne 0x401714
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401714
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x154]
push eax
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, esi
call edx
mov edi, dword [ebp + 8]
fild dword [esi + 0x70]
fadd qword [esi + 0x80]
fadd qword [esp + 0x2c]
fst qword [esp + 0x2c]
fld st(0)
call fcn.00433b20
fadd qword [esi + 0x80]
mov dword [esp + 0x34], eax
call fcn.00433b20
inc ebx
cmp ebx, dword [esi + 0x54]
mov dword [esp + 0x3c], eax
jl 0x401643
mov eax, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.00418d77
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00418d77
lea ecx, [esp + 0x24]
call fcn.00418ce4
lea ecx, [esp + 0x1c]
call fcn.00418ce4
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBrush.0
call fcn.00402050
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CPen.0
call fcn.00402050
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4