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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f57e
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4a12d8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x4a12d8]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1cc]
push eax
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 4]
lea edx, [esp + 0x1dc]
push edx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, dword [sym.imp.gdiplus.dll_GdipAlloc]
push 0x10
mov dword [esp + 0x50], eax
call ebx
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x40f376
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x26200a
push edi
push 0xc8
push 0x190
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x2c], edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
mov dword [esp + 0x18], esi
jmp 0x40f37c
mov dword [esp + 0x18], edi
mov esi, edi
push 8
call ebx
mov ebx, eax
cmp ebx, edi
je 0x40f3ac
mov dword [esp + 0x14], edi
cmp esi, edi
je 0x40f3a0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x14]
mov dword [ebx], edx
mov dword [esp + 0x1c], ebx
jmp 0x40f3b0
mov dword [esp + 0x1c], edi
mov esi, dword [sym.imp.gdiplus.dll_GdipAlloc]
push 0x10
call esi
mov ebx, eax
cmp ebx, edi
je 0x40f3f6
lea eax, [esp + 0x14]
push eax
push edi
push 0x26200a
push edi
push 0xc8
push 0x190
mov dword [ebx], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x2c], edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx + 4], ecx
mov dword [esp + 0x30], ebx
jmp 0x40f3fc
mov dword [esp + 0x30], edi
mov ebx, edi
push 8
call esi
mov esi, eax
cmp esi, edi
je 0x40f42a
mov dword [esp + 0x14], edi
cmp ebx, edi
je 0x40f420
mov eax, dword [ebx + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [esi], ecx
mov ebx, esi
jmp 0x40f42c
xor ebx, ebx
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x230], edi
mov edx, dword [esi]
push 4
push edx
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
cmp eax, edi
je 0x40f46f
mov dword [esi + 4], eax
fld dword [0x49a884]
lea eax, [esp + 0x70]
push eax
push edi
push ecx
fstp dword [esp]
push 0xffffffffffffffff
mov dword [esp + 0x80], edi
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
mov dword [esp + 0x74], eax
xor esi, esi
mov byte [esp + 0x230], 1
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x120]
cmp eax, 0x3c
jle 0x40f4b4
mov eax, 0x3c
dec eax
cmp esi, eax
jge 0x40f586
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 0x20]
mov dword [esp + 0x78], ecx
lea ecx, [edi + 0x166]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 0x20]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx + 0x118]
add ecx, esi
mov eax, ecx
cdq
mov esi, 0x3c
idiv esi
mov eax, dword [esp + 0x20]
mov edx, dword [eax + edx*4 + 0x28]
cmp edx, 0xb4
jl 0x40f520
mov edx, 0xb4
mov esi, 0xbe
sub esi, edx
lea eax, [ecx + 1]
cdq
mov ecx, 0x3c
idiv ecx
mov eax, dword [esp + 0x20]
mov edx, dword [eax + edx*4 + 0x28]
cmp edx, 0xb4
jl 0x40f547
mov edx, 0xb4
mov eax, dword [esp + 0x78]
mov ecx, 0xbe
sub ecx, edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push esi
mov esi, dword [esp + 0x28]
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.gdiplus.dll_GdipDrawLineI]
test eax, eax
je 0x40f573
mov dword [esi + 4], eax
inc dword [esp + 0x14]
mov esi, dword [esp + 0x14]
add edi, 0x166
jmp 0x40f4a0
mov edi, dword [sym.imp.gdiplus.dll_GdipCreateImageAttributes]
lea eax, [esp + 0x60]
xor esi, esi
push eax
mov dword [esp + 0x64], esi
call edi
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x54], esi
call edi
mov dword [esp + 0x54], eax
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], esi
call edi
mov dword [esp + 0x5c], eax
fld1
fst dword [esp + 0x94]
fldz
fst dword [esp + 0x98]
fst dword [esp + 0x9c]
fst dword [esp + 0xa0]
fst dword [esp + 0xa4]
fst dword [esp + 0xa8]
fst dword [esp + 0xb0]
fst dword [esp + 0xb4]
fst dword [esp + 0xb8]
fst dword [esp + 0xbc]
fst dword [esp + 0xc0]
fst dword [esp + 0xc8]
fst dword [esp + 0xcc]
fst dword [esp + 0xd0]
fst dword [esp + 0xd4]
fst dword [esp + 0xd8]
fst dword [esp + 0xe0]
fst dword [esp + 0xe4]
fxch st(1)
fst dword [esp + 0xac]
fst dword [esp + 0xc4]
fst dword [esp + 0xdc]
fld dword [0x49a880]
fst dword [esp + 0xe8]
fst dword [esp + 0xec]
fst dword [esp + 0x1bc]
fst dword [esp + 0x14c]
fstp dword [esp + 0x154]
fst dword [esp + 0xf0]
fst dword [esp + 0xf4]
fst dword [esp + 0x164]
fst dword [esp + 0x17c]
fst dword [esp + 0x194]
fst dword [esp + 0x1ac]
fst dword [esp + 0x1c0]
fst dword [esp + 0x1c4]
fst dword [esp + 0xfc]
fst dword [esp + 0x114]
fst dword [esp + 0x12c]
fst dword [esp + 0x144]
fst dword [esp + 0x158]
fstp dword [esp + 0x15c]
fst dword [esp + 0x168]
fst dword [esp + 0x16c]
fst dword [esp + 0x170]
fst dword [esp + 0x174]
fst dword [esp + 0x178]
fst dword [esp + 0x180]
fst dword [esp + 0x184]
fst dword [esp + 0x188]
fst dword [esp + 0x18c]
fst dword [esp + 0x190]
fst dword [esp + 0x198]
fst dword [esp + 0x19c]
fst dword [esp + 0x1a0]
fst dword [esp + 0x1a4]
fst dword [esp + 0x1a8]
fst dword [esp + 0x1b0]
fst dword [esp + 0x1b4]
mov ecx, dword [esp + 0x60]
fst dword [esp + 0x1b8]
mov edi, dword [sym.imp.gdiplus.dll_GdipSetImageAttributesColorMatrix]
fst dword [esp + 0x100]
fst dword [esp + 0x104]
push esi
fst dword [esp + 0x10c]
push esi
fst dword [esp + 0x114]
lea eax, [esp + 0x9c]
fst dword [esp + 0x118]
push eax
fst dword [esp + 0x124]
push 1
fst dword [esp + 0x12c]
push 1
fst dword [esp + 0x134]
push ecx
fst dword [esp + 0x13c]
fst dword [esp + 0x140]
fst dword [esp + 0x148]
fst dword [esp + 0x14c]
fst dword [esp + 0x150]
fst dword [esp + 0x154]
fst dword [esp + 0x158]
fst dword [esp + 0x160]
fstp dword [esp + 0x168]
call edi
cmp eax, esi
je 0x40f7f7
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
push esi
push esi
lea edx, [esp + 0x16c]
push edx
push 1
push 1
push eax
call edi
cmp eax, esi
je 0x40f814
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x58]
push esi
push esi
lea ecx, [esp + 0x104]
push ecx
push 1
push 1
push edx
call edi
cmp eax, esi
je 0x40f831
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40f83e
mov eax, dword [eax + 4]
jmp 0x40f840
xor eax, eax
mov ecx, dword [esp + 0x60]
push esi
push esi
mov edx, dword [ebx]
push ecx
mov edi, dword [sym.imp.gdiplus.dll_GdipDrawImageRectRectI]
push 2
push 0x28
push 0x190
push esi
push esi
push 0x28
push 0x190
push esi
push esi
push eax
push edx
call edi
cmp eax, esi
je 0x40f86e
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40f87b
mov eax, dword [eax + 4]
jmp 0x40f87d
xor eax, eax
mov ecx, dword [esp + 0x50]
push esi
push esi
mov edx, dword [ebx]
push ecx
push 2
push 0x64
push 0x190
push 0x28
push esi
push 0x64
push 0x190
push 0x28
push esi
push eax
push edx
call edi
cmp eax, esi
je 0x40f8a7
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40f8b4
mov eax, dword [eax + 4]
jmp 0x40f8b6
xor eax, eax
mov ecx, dword [esp + 0x58]
push esi
push esi
mov edx, dword [ebx]
push ecx
push 2
push 0x96
push 0x190
push 0x5a
push esi
push 0x96
push 0x190
push 0x5a
push esi
push eax
push edx
call edi
cmp eax, esi
je 0x40f8e6
mov dword [ebx + 4], eax
fld dword [0x49a884]
lea eax, [esp + 0x44]
push eax
push esi
push ecx
fstp dword [esp]
push 0xffffffffffffffff
mov dword [esp + 0x54], esi
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx]
mov edi, dword [sym.imp.gdiplus.dll_GdipDrawLineI]
push 0xbe
push 0x20
push 0xa
push 0x20
push ecx
push edx
call edi
cmp eax, esi
je 0x40f928
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx]
push 0x28
push 0x186
push 0x28
push 0x1c
push eax
push ecx
call edi
cmp eax, esi
je 0x40f944
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
push 0x5a
push 0x186
push 0x5a
push 0x1c
push edx
push eax
call edi
cmp eax, esi
je 0x40f960
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx]
push 0x8c
push 0x186
push 0x8c
push 0x1c
push ecx
push edx
call edi
cmp eax, esi
je 0x40f982
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx]
push 0xbe
push 0x186
push 0xbe
push 0x20
push eax
push ecx
call edi
cmp eax, esi
je 0x40f9a4
mov dword [ebx + 4], eax
lea edx, [esp + 0x68]
push edx
push esi
push str.Arial
mov dword [esp + 0x74], esi
call dword [sym.imp.gdiplus.dll_GdipCreateFontFamilyFromName]
mov dword [esp + 0x6c], eax
fld dword [0x49a87c]
lea eax, [esp + 0x14]
push eax
push 3
push 1
push ecx
mov ecx, dword [esp + 0x78]
fstp dword [esp]
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.gdiplus.dll_GdipCreateFont]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edi
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x90], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x1c], esi
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], esi
lea eax, [esp + 0x28]
push eax
push 0
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.gdiplus.dll_GdipCreateStringFormat]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x230], 9
mov ecx, dword [esp + 0x28]
push 2
push ecx
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatAlign]
test eax, eax
je 0x40fa51
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x28]
fld dword [0x49a878]
mov ecx, dword [ebx]
fstp dword [esp + 0x34]
fld dword [0x49a874]
push esi
push edx
fstp dword [esp + 0x40]
fld dword [0x49a870]
lea eax, [esp + 0x3c]
push eax
fstp dword [esp + 0x48]
fld dword [0x49a86c]
push edi
push 0xffffffffffffffff
fstp dword [esp + 0x54]
push 0x47fc9c
push ecx
call dword [sym.imp.gdiplus.dll_GdipDrawString]
test eax, eax
je 0x40fa9c
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x28]
fld dword [0x49a878]
mov ecx, dword [ebx]
fstp dword [esp + 0x34]
fld dword [0x49a868]
push esi
push edx
fstp dword [esp + 0x40]
fld dword [0x49a870]
lea eax, [esp + 0x3c]
push eax
fstp dword [esp + 0x48]
fld dword [0x49a864]
push edi
push 0xffffffffffffffff
fstp dword [esp + 0x54]
push 0x47fca4
push ecx
call dword [sym.imp.gdiplus.dll_GdipDrawString]
test eax, eax
je 0x40fae7
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x28]
fld dword [0x49a878]
mov ecx, dword [ebx]
fstp dword [esp + 0x34]
fld dword [0x49a860]
push esi
push edx
fstp dword [esp + 0x40]
fld dword [0x49a870]
lea eax, [esp + 0x3c]
push eax
fstp dword [esp + 0x48]
fld dword [0x49a85c]
push edi
push 0xffffffffffffffff
fstp dword [esp + 0x54]
push 0x47fcac
push ecx
call dword [sym.imp.gdiplus.dll_GdipDrawString]
test eax, eax
je 0x40fb32
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x28]
fld dword [0x49a878]
mov ecx, dword [ebx]
fstp dword [esp + 0x34]
fld dword [0x49a884]
push esi
push edx
fstp dword [esp + 0x40]
fld dword [0x49a870]
lea eax, [esp + 0x3c]
push eax
fstp dword [esp + 0x48]
fld dword [0x49a858]
push edi
push 0xffffffffffffffff
fstp dword [esp + 0x54]
push 0x47fcb4
push ecx
call dword [sym.imp.gdiplus.dll_GdipDrawString]
test eax, eax
je 0x40fb7d
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40fb8a
mov eax, dword [eax + 4]
jmp 0x40fb8c
xor eax, eax
mov edx, dword [esp + 0x1d8]
mov ecx, dword [esp + 0x1d4]
push edx
mov edx, dword [esp + 0x28]
push ecx
push 0
push 0
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
test eax, eax
je 0x40fbb7
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.gdiplus.dll_GdipFree]
mov eax, dword [ebx]
push eax
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push ebx
call dword [sym.imp.gdiplus.dll_GdipFree]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40fbef
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40fbff
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x1dc]
push ecx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push edi
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov edx, dword [esp + 0x68]
push edx
call dword [sym.imp.gdiplus.dll_GdipDeleteFontFamily]
mov eax, dword [esp + 0x44]
mov edi, dword [sym.imp.gdiplus.dll_GdipDeletePen]
push eax
call edi
mov ecx, dword [esp + 0x58]
mov esi, dword [sym.imp.gdiplus.dll_GdipDisposeImageAttributes]
push ecx
call esi
mov edx, dword [esp + 0x50]
push edx
call esi
mov eax, dword [esp + 0x60]
push eax
call esi
mov ecx, dword [esp + 0x70]
push ecx
call edi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0043e590
mov esp, ebp
pop ebp
ret