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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x535539
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x584460]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x584460]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], ebx
call fcn.00425850
xor esi, esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], vtable.CBitmap.0
mov byte [esp + 0x98], 1
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp ebx, esi
jne 0x40f2cf
xor eax, eax
jmp 0x40f2d2
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x60]
call fcn.00425e85
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
sub ecx, dword [esp + 0x78]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x38]
call fcn.00426159
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x60]
push eax
push ecx
call fcn.004261ea
lea edx, [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
push edx
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
push 2
push eax
mov byte [esp + 0xa0], 2
call dword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
cmp eax, esi
je 0x40f35b
mov dword [esp + 0x30], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x164]
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call edx
call fcn.0041df57
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40f386
push 0x80004005
call fcn.00402e30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov byte [esp + 0x9c], 3
call fcn.0042362c
xor edx, edx
cmp dword [edi + 0xd8], esi
setne dl
mov dword [esp + 0x10], edx
cmp dword [edi + 0x104], esi
je 0x40f3c9
mov dword [esp + 0x10], 4
mov ebx, dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
lea eax, [esp + 0x28]
push eax
push 0x41000000
mov dword [esp + 0x74], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x30], esi
call ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
mov byte [esp + 0x98], 4
mov eax, dword [edi + 0xd0]
cmp dword [eax - 4], 1
jle 0x40f416
mov edx, dword [eax - 0xc]
push edx
lea ecx, [edi + 0xd0]
call fcn.00402c80
mov eax, dword [esp + 0x10]
fild dword [edi + 0xd4]
push eax
push ecx
mov ecx, dword [edi + 0xd0]
fstp dword [esp]
lea esi, [esp + 0x44]
call fcn.004068c0
mov eax, dword [edi + 0x74]
xor esi, esi
cmp eax, 3
jne 0x40f46a
push 0xc
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40f5c8
movzx eax, byte [edi + 0xf4]
movzx edx, byte [edi + 0xf5]
movzx ecx, byte [edi + 0xf6]
jmp 0x40f590
cmp eax, 1
je 0x40f56d
test eax, eax
je 0x40f56d
cmp eax, 2
jne 0x40f4cb
push 0xc
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40f517
movzx edx, byte [edi + 0xec]
movzx ecx, byte [edi + 0xed]
movzx eax, byte [edi + 0xee]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.00406870
mov esi, eax
jmp 0x40f5ca
cmp eax, 4
jne 0x40f520
push 0xc
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40f517
movzx edx, byte [edi + 0xf0]
movzx ecx, byte [edi + 0xf1]
movzx eax, byte [edi + 0xf2]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.00406870
mov esi, eax
jmp 0x40f5ca
xor eax, eax
mov esi, eax
jmp 0x40f5ca
cmp eax, 5
jne 0x40f5ca
push 0xc
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40f517
movzx edx, byte [edi + 0xf8]
movzx ecx, byte [edi + 0xf9]
movzx eax, byte [edi + 0xfa]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.00406870
mov esi, eax
jmp 0x40f5ca
push 0xc
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40f5c8
movzx eax, byte [edi + 0xe8]
movzx edx, byte [edi + 0xe9]
movzx ecx, byte [edi + 0xea]
or eax, 0xffffff00
shl eax, 8
or eax, edx
lea edx, [esp + 0x10]
shl eax, 8
push edx
or eax, ecx
mov dword [esi + 8], 6
push eax
mov dword [esi], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x18], 0
call ebx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
jmp 0x40f5ca
xor esi, esi
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], eax
push eax
cmp dword [edi + 0xb4], eax
je 0x40f734
call dword [sym.imp.gdiplus.dll_GdipCreateStringFormat]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x98], 6
mov eax, dword [edi + 0xe0]
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatAlign]
test eax, eax
je 0x40f60f
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xe4]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatLineAlign]
test eax, eax
je 0x40f629
mov dword [esp + 0x1c], eax
fld dword [0x565580]
add edi, 0xb8
fcom dword [edi + 8]
fnstsw ax
test ah, 1
je 0x40f674
fcomp dword [edi + 0xc]
fnstsw ax
test ah, 1
je 0x40f676
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 4], 1
jle 0x40f664
mov ecx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402c80
mov ecx, dword [esp + 0x14]
test esi, esi
je 0x40f6fe
mov eax, dword [esi + 4]
jmp 0x40f700
fstp st(0)
mov ecx, dword [esp + 0x80]
sub ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
sub edx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
fstp dword [esp + 0x24]
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fldz
fst dword [esp + 0x44]
fstp dword [esp + 0x48]
fld dword [esp + 0x24]
fstp dword [esp + 0x4c]
fld dword [esp + 0x10]
fstp dword [esp + 0x50]
cmp dword [ecx - 4], 1
jle 0x40f6d9
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00402c80
mov ecx, dword [esp + 0x14]
test esi, esi
je 0x40f6e2
mov eax, dword [esi + 4]
jmp 0x40f6e4
xor eax, eax
mov edx, dword [esp + 0x18]
push eax
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push edx
push 0xffffffffffffffff
push ecx
push eax
jmp 0x40f714
xor eax, eax
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x40]
push edx
push edi
push eax
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDrawString]
test eax, eax
je 0x40f722
mov dword [esp + 0x30], eax
mov byte [esp + 0x98], 5
mov edx, dword [esp + 0x18]
push edx
jmp 0x40f7e2
call dword [sym.imp.gdiplus.dll_GdipCreateStringFormat]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x98], 7
mov edx, dword [esp + 0x18]
push 1
push edx
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatHotkeyPrefix]
test eax, eax
je 0x40f75b
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 4], 1
jle 0x40f776
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00402c80
mov ecx, dword [esp + 0x14]
fld dword [edi + 0xc8]
fstp dword [esp + 0x24]
fld dword [edi + 0xcc]
fstp dword [esp + 0x10]
fld dword [esp + 0x24]
fstp dword [esp + 0x44]
fld dword [esp + 0x10]
fstp dword [esp + 0x48]
fldz
fst dword [esp + 0x4c]
fstp dword [esp + 0x50]
test esi, esi
je 0x40f7ad
mov eax, dword [esi + 4]
jmp 0x40f7af
xor eax, eax
mov edx, dword [esp + 0x18]
push eax
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push edx
push 0xffffffffffffffff
push ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipDrawString]
test eax, eax
je 0x40f7d5
mov dword [esp + 0x30], eax
mov byte [esp + 0x98], 5
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
test esi, esi
je 0x40f7f6
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x80]
sub ecx, dword [esp + 0x78]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [eax + 4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40f839
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x60]
push eax
push edx
call fcn.004261ea
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f882
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], vtable.CBitmap.0
call fcn.00402b20
lea ecx, [esp + 0x5c]
mov dword [esp + 0x98], 0xffffffff
call fcn.00425f06
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00511b7f
mov esp, ebp
pop ebp
ret 4