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

Disassembly:
push 0xffffffffffffffff
push 0x477aea
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe8]
mov edx, dword [ebp + 0x100]
mov eax, dword [ebp + 0x108]
mov esi, dword [ebp + 0x104]
mov ecx, dword [ebp + 0x10c]
sub eax, edx
sub ecx, esi
dec eax
dec ecx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x58], ecx
mov edx, 1
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
call dword [sym.imp.USER32.dll_CopyRect]
lea edi, [esp + 0xc8]
lea ebx, [esp + 0x90]
mov esi, ebp
call fcn.00437c70
mov eax, dword [ebp + 0xf0]
mov eax, dword [eax]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov edi, dword [ebp + 0xd8]
mov dword [esp + 0x30], eax
mov ecx, esi
sub ecx, ebx
mov eax, 0x51eb851f
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xb
mov dword [esp + 0x2c], edi
jge 0x436934
cmp eax, 7
mov dword [esp + 0x18], eax
jg 0x436759
mov dword [esp + 0x18], 7
mov eax, dword [esp + 0x3c]
fld dword [ebp + 0x58]
sub eax, dword [esp + 0x34]
fstp dword [esp + 0x28]
fldz
mov dword [esp + 0x4c], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x5c], eax
fst dword [esp + 0x80]
mov eax, dword [esp + 0x94]
fst dword [esp + 0x7c]
sub eax, dword [esp + 0x9c]
fst dword [esp + 0x78]
fstp dword [esp + 0x74]
sub eax, ebx
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x9c]
fild dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
xor esi, esi
push eax
fstp dword [esp + 0x68]
mov dword [esp + 0x2c], esi
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0xe4], esi
fld dword [0x488674]
push esi
push ecx
fstp dword [esp]
push 0xff000000
mov dword [esp + 0x74], esi
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x68], eax
fild dword [esp + 0x18]
mov ecx, dword [ebp + 0x88]
mov ebx, dword [ebp + 0x8c]
push ecx
lea esi, [esp + 0x48]
fstp dword [esp]
call fcn.004347e0
mov byte [esp + 0xe0], 2
lea ecx, [ecx]
mov esi, dword [ebp + 0xf0]
mov eax, dword [ebp + 0xd8]
test edi, edi
je 0x436834
cmp edi, eax
je 0x43683a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x30]
cmp ebx, esi
je 0x436aad
test edi, edi
jne 0x436941
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [edi + 0x18]
jne 0x43685f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x436a9b
fld dword [esi + 0xc]
mov edx, dword [esp + 0x34]
fmul qword [0x488620]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
add eax, edx
fadd dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
fmul qword [0x488648]
add ecx, ecx
mov dword [esp + 0xc0], eax
mov eax, 0x66666667
fdiv qword [0x488650]
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x1c], ecx
fst qword [esp + 0x84]
fild dword [esp + 0x1c]
fstp qword [esp + 0x6c]
call sub.MSVCR90.dll__CIcos
fmul qword [esp + 0x6c]
cmp dword [ebp + 0xfc], 2
fiadd dword [esp + 0xc0]
fstp dword [esp + 0x1c]
fld qword [esp + 0x84]
jne 0x436948
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x6c]
fmul st(1)
fiadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x60]
fdiv qword [0x488690]
fmul qword [0x488688]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fsub dword [esp + 0x18]
jmp 0x436969
mov dword [esp + 0x18], 0xb
jmp 0x436759
mov edi, dword [edi]
jmp 0x436854
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
lea eax, [edx + ecx]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
call sub.MSVCR90.dll__CIsin
fmul qword [esp + 0x6c]
fiadd dword [esp + 0x18]
lea ecx, [esp + 0x20]
fstp dword [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [esp + 0xe0], 3
fld dword [esi + 8]
fmul qword [0x488628]
sub esp, 8
lea eax, [esp + 0x28]
fstp qword [esp]
push str._.2f
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
push 0x48484c
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append]
fldz
mov eax, dword [esp + 0x20]
fst dword [esp + 0xa0]
mov ebx, dword [esp + 0xec]
fst dword [esp + 0xa4]
push 0
fst dword [esp + 0xac]
push 0
fstp dword [esp + 0xb4]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x7c]
push edx
push 0
lea edx, [esp + 0xb0]
push edx
mov edx, dword [esp + 0x58]
push edx
push ecx
push eax
mov eax, dword [ebx]
push eax
call sub.gdiplus.dll_GdipMeasureString
test eax, eax
je 0x436a05
mov dword [ebx + 4], eax
fld dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
fld qword [0x488620]
mov eax, dword [esp + 0x20]
fmul st(1), st(0)
mov ecx, dword [eax - 0xc]
fxch st(1)
push edx
push 0
fsubr dword [esp + 0x24]
lea edx, [esp + 0xb8]
push edx
mov edx, dword [esp + 0x50]
fstp dword [esp + 0x28]
push edx
fld dword [esp + 0x90]
push ecx
fmulp st(1)
push eax
mov eax, dword [ebx]
push eax
fsubr dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fstp dword [esp + 0xcc]
fld dword [esp + 0x34]
fstp dword [esp + 0xd0]
fldz
fst dword [esp + 0xd4]
fstp dword [esp + 0xd8]
call sub.gdiplus.dll_GdipDrawString
test eax, eax
je 0x436a7e
mov dword [ebx + 4], eax
fld dword [esi + 0xc]
lea ecx, [esp + 0x20]
fadd dword [esp + 0x28]
mov byte [esp + 0xe0], 2
fstp dword [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea esi, [esp + 0x2c]
call fcn.00403780
mov edi, dword [esp + 0x2c]
jmp 0x436820
mov ecx, dword [esp + 0x44]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
mov edx, dword [esp + 0x64]
push edx
call sub.gdiplus.dll_GdipDeletePen
mov eax, dword [esp + 0x24]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 8