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

Disassembly:
push 0xffffffffffffffff
push 0x442366
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x130]
lea eax, [esp + 0x50]
xor edi, edi
push eax
push edi
push edi
mov dword [esp + 0x5c], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x54], eax
mov dword [esp + 0x128], edi
fldz
fst dword [esp + 0xa8]
lea ecx, [esp + 0x34]
fst dword [esp + 0xa4]
push ecx
fst dword [esp + 0xa4]
mov esi, vtable.Gdiplus::SolidBrush.0
fst dword [esp + 0xa0]
push 0xff000000
fst dword [esp + 0xcc]
mov dword [esp + 0xdc], esi
fst dword [esp + 0xc8]
mov dword [esp + 0x3c], edi
fst dword [esp + 0xc4]
fstp dword [esp + 0xc0]
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x34]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xd8], edx
fld dword [0x44c3d4]
lea eax, [esp + 0x6c]
push eax
push edi
push ecx
fstp dword [esp]
push 0xff000000
mov dword [esp + 0x7c], edi
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x9c]
lea ecx, [esp + 0x48]
push ecx
push eax
mov dword [esp + 0xfc], esi
mov dword [esp + 0x50], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x48]
mov dword [esp + 0xfc], eax
mov dword [esp + 0xf8], edx
mov eax, dword [ebp + 0xa0]
lea ecx, [esp + 0x60]
push ecx
push eax
mov dword [esp + 0xd0], esi
mov dword [esp + 0x68], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x60]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xcc], edx
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 + 0x40], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], ecx
mov edx, 1
push eax
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [ebp + 0x100]
fld dword [0x44c3e4]
mov eax, dword [ebp + 0x108]
mov edx, dword [ebp + 0x104]
sub eax, ecx
push ecx
mov dword [esp + 0x88], eax
fstp dword [esp]
mov eax, dword [ebp + 0xa0]
mov dword [esp + 0x84], edx
mov edx, dword [ebp + 0x10c]
push eax
lea esi, [esp + 0x20]
mov dword [esp + 0x90], edx
call fcn.0041ffd0
fld1
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xac]
push ecx
push edi
push ecx
fstp dword [esp]
push edx
mov dword [esp + 0xbc], edi
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x50]
push 0x2000
push eax
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, edi
je 0x420557
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x98]
sub ecx, dword [esp + 0x90]
mov eax, 0x51eb851f
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xb
mov dword [esp + 0x2c], eax
jl 0x420587
mov dword [esp + 0x2c], 0xb
mov ecx, dword [ebp + 0x88]
fild dword [esp + 0x2c]
mov ebx, dword [ebp + 0x8c]
push ecx
lea esi, [esp + 0x78]
fstp dword [esp]
call fcn.0041ef10
mov byte [esp + 0x128], 6
mov esi, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
mov ebx, dword [ebp + 0xf4]
lea eax, [ecx + esi]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 0x84]
add eax, dword [ebp + 0x78]
sar ecx, 1
imul eax, ebx
cdq
sub eax, edx
sar eax, 1
mov edx, ecx
sub edx, eax
cmp edx, esi
jle 0x4205eb
sub ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x4205ef
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x94]
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
mov ebx, dword [esp + 0x134]
shr eax, 0x1f
add eax, edx
add eax, dword [ebp + 0x74]
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xa4]
fild dword [esp + 0x1c]
push edi
lea edx, [esp + 0xa4]
push edx
fstp dword [esp + 0x38]
push edi
fld dword [esp + 0x3c]
lea edx, [esp + 0x48]
fstp dword [esp + 0x48]
push edx
fldz
mov edx, dword [esp + 0x88]
fst dword [esp + 0x50]
push edx
fst dword [esp + 0x58]
fstp dword [esp + 0x5c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, dword [ebx]
push eax
call sub.gdiplus.dll_GdipMeasureString
cmp eax, edi
je 0x420669
mov dword [ebx + 4], eax
fld dword [esp + 0xa4]
mov eax, dword [ebp + 0x80]
fld dword [esp + 0x9c]
mov esi, dword [esp + 0x84]
fld st(0)
mov ecx, esi
faddp st(2)
sub ecx, eax
fxch st(1)
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x4206c3
fild dword [esp + 0x84]
fild dword [esp + 0x1c]
faddp st(2)
fsubrp st(1)
fstp dword [esp + 0xa4]
jmp 0x4206c5
fstp st(0)
mov ecx, dword [esp + 0x94]
fld dword [esp + 0x2c]
fadd dword [esp + 0xa4]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
fiadd dword [esp + 0x18]
push edi
push edi
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [ebx]
push edi
lea edx, [esp + 0x48]
fstp dword [esp + 0x40]
push edx
fild dword [ebp + 0x78]
push eax
push 7
push 0x44a7c0
fstp dword [esp + 0x38]
push ecx
fld dword [esp + 0x54]
fstp dword [esp + 0x5c]
fldz
fst dword [esp + 0x60]
fstp dword [esp + 0x64]
fld dword [esp + 0x3c]
fstp dword [esp + 0x68]
call sub.gdiplus.dll_GdipMeasureString
cmp eax, edi
je 0x420742
mov dword [ebx + 4], eax
fld dword [esp + 0xc0]
mov eax, dword [ebp + 0x80]
fst dword [esp + 0x4c]
sub esi, eax
fld dword [esp + 0x30]
mov dword [esp + 0x18], esi
fld st(0)
mov dword [esp + 0x1c], eax
faddp st(2)
fild dword [esp + 0x18]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x420789
fild dword [esp + 0x84]
fild dword [esp + 0x1c]
faddp st(2)
fsubrp st(1)
fstp dword [esp + 0x4c]
jmp 0x42078b
fstp st(0)
lea edx, [ebp + 0x94]
push edx
lea eax, [esp + 0x3c]
lea edi, [ebp + 0xd8]
push eax
call fcn.00423380
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov eax, dword [ebp + 0x90]
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x98]
cmp eax, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x1c], eax
jl 0x4207c7
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x30]
lea edx, [esp + 0xc8]
fstp dword [esp + 0x38]
push edx
fild dword [esp + 0x24]
lea eax, [esp + 0x3c]
mov esi, ebx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x40]
fld dword [esp + 0x50]
fstp dword [esp + 0x44]
fild dword [esp + 0x20]
fstp dword [esp + 0x48]
call fcn.0041edf0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x78]
add ecx, eax
cmp ecx, dword [esp + 0x98]
mov dword [esp + 0x1c], eax
jg 0x420bee
jmp 0x420824
mov edi, dword [esp + 0x64]
mov esi, dword [ebp + 0xf0]
mov eax, dword [ebp + 0xd8]
test edi, edi
je 0x420838
cmp edi, eax
je 0x42083e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x68], esi
je 0x420bee
test edi, edi
jne 0x420aa4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x68]
cmp edx, dword [edi + 0x18]
jne 0x420865
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x68]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x420bda
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call sub.gdiplus.dll_GdipSetSolidFillColor
test eax, eax
je 0x42088d
mov dword [esp + 0xdc], eax
fld dword [0x44c3e4]
mov edx, dword [edi + 0x20]
push ecx
fstp dword [esp]
push edx
lea esi, [esp + 0xf8]
call fcn.0041ffd0
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x70]
push eax
call sub.gdiplus.dll_GdipSetPenColor
test eax, eax
je 0x4208bc
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x94]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx]
fild dword [esp + 0x20]
sub esp, 0x10
fstp dword [esp + 0x34]
fild dword [ebp + 0x74]
fstp dword [esp + 0x6c]
fild dword [ebp + 0x78]
fstp dword [esp + 0x68]
fild dword [esp + 0x2c]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x114]
fld dword [esp + 0x68]
fstp dword [esp + 0xc]
fld dword [esp + 0x6c]
fstp dword [esp + 8]
fld dword [esp + 0x114]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fstp dword [esp]
push ecx
push edx
call sub.gdiplus.dll_GdipFillRectangle
test eax, eax
je 0x42093c
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x94]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
mov edx, dword [ebx]
sub esp, 0x10
fild dword [esp + 0x34]
fstp dword [esp + 0x68]
fild dword [ebp + 0x74]
fstp dword [esp + 0x6c]
fild dword [ebp + 0x78]
fstp dword [esp + 0x34]
fld dword [esp + 0x30]
fstp dword [esp + 0x124]
fld dword [esp + 0x34]
fstp dword [esp + 0xc]
fld dword [esp + 0x6c]
fstp dword [esp + 8]
fld dword [esp + 0x124]
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
push ecx
push edx
call sub.gdiplus.dll_GdipDrawRectangle
test eax, eax
je 0x4209b4
mov dword [ebx + 4], eax
fild dword [ebp + 0x78]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov eax, dword [edi + 0x24]
fstp dword [esp + 0x24]
push esi
fld dword [esp + 0x30]
push edx
fstp dword [esp + 0xe8]
lea edx, [esp + 0xe8]
fld dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x80]
fstp dword [esp + 0xf0]
fld dword [esp + 0xb0]
push edx
fstp dword [esp + 0xf8]
fld dword [esp + 0x34]
fstp dword [esp + 0xfc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, dword [ebx]
push eax
call sub.gdiplus.dll_GdipDrawString
test eax, eax
je 0x420a1b
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x84]
fild dword [ebp + 0x78]
cdq
sub eax, edx
fadd dword [esp + 0x20]
sar eax, 1
mov dword [esp + 0x24], eax
fiadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x4c]
fld st(0)
fld dword [esp + 0x30]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fld st(0)
fsub dword [esp + 0x18]
fild dword [ebp + 0x98]
fcompp
fnstsw ax
test ah, 0x41
jne 0x420aab
fldz
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 5
jp 0x420aad
mov ecx, dword [esp + 0xac]
fxch st(1)
mov edx, dword [ebx]
sub esp, 0x10
fst dword [esp + 0xc]
fld dword [esp + 0x48]
fstp dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
push ecx
push edx
call sub.gdiplus.dll_GdipDrawLine
test eax, eax
je 0x420ab1
mov dword [ebx + 4], eax
jmp 0x420ab1
mov edi, dword [edi]
jmp 0x420856
fstp st(0)
fstp st(1)
fstp st(0)
lea ecx, [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_class]
mov byte [esp + 0x128], 7
fld dword [edi + 8]
fmul qword [0x44c3a0]
sub esp, 8
lea eax, [esp + 0x30]
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 0x44a7dc
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append]
fld dword [edi + 8]
fmul qword [0x44c3a0]
fcomp qword [0x44c418]
fnstsw ax
test ah, 5
jp 0x420b3e
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00423230
add esp, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 8
call dword [0x444764]
lea ecx, [esp + 0xb4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
fldz
fld dword [esp + 0x4c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x420bb0
fld dword [esp + 0x30]
mov edx, dword [esp + 0x50]
fadd qword [0x44c410]
mov eax, dword [esp + 0x28]
push esi
push edx
fstp dword [esp + 0x84]
lea edx, [esp + 0x84]
fld dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x80]
fstp dword [esp + 0x8c]
push edx
fstp dword [esp + 0x94]
fld dword [esp + 0xd4]
fstp dword [esp + 0x98]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, dword [ebx]
push eax
call sub.gdiplus.dll_GdipDrawString
test eax, eax
je 0x420bb2
mov dword [ebx + 4], eax
jmp 0x420bb2
fstp st(0)
mov ecx, dword [ebp + 0x84]
add ecx, dword [ebp + 0x78]
lea esi, [esp + 0x64]
add dword [esp + 0x1c], ecx
call fcn.00405c70
lea ecx, [esp + 0x28]
mov byte [esp + 0x128], 6
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edx, dword [ebp + 0x78]
add edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x98]
jle 0x420820
mov eax, dword [esp + 0x74]
push eax
call sub.gdiplus.dll_GdipDeleteFont
mov ecx, dword [esp + 0xac]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0x60]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x48]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x6c]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0x34]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x50]
push eax
call sub.gdiplus.dll_GdipDeleteStringFormat
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 8