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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f0532
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 0x158]
movzx eax, cl
or eax, 0xffffff00
movzx edx, ch
shl eax, 8
or eax, edx
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
lea edx, [esp + 0x20]
or eax, ecx
push edx
xor edi, edi
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x70], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x28], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xf8], edi
mov eax, dword [esi + 0x1a0]
cmp eax, edi
jne 0x4224b4
mov ecx, dword [esi - 0x54]
push edi
push edi
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.004c1f03
mov eax, dword [eax + 4]
lea edx, [esp + 0x84]
push edx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp ebx, edi
jne 0x4224d0
xor eax, eax
jmp 0x4224d3
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x88]
push edx
push eax
mov dword [esp + 0x28], edi
call sub.gdiplus.dll_GdipCreateFontFromLogfontW
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
mov edx, dword [esi - 0x54]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
lea edx, [esp + 0x2c]
push edx
push edi
push 0x26200a
push edi
push eax
push ecx
mov dword [esp + 0x8c], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x44], edi
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
push 7
push ebx
call sub.gdiplus.dll_GdipSetInterpolationMode
cmp eax, edi
je 0x42256e
mov dword [esp + 0x34], eax
lea edx, [esp + 0x24]
push edx
push edi
push edi
mov dword [esp + 0x30], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x28], eax
mov byte [esp + 0xf8], 4
mov eax, dword [esp + 0x24]
push 2
push eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x42259e
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
push 1
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, edi
je 0x4225b2
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x4c]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
call fcn.004bb047
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4225f4
push 0x80004005
call fcn.00401730
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi - 0x74]
mov byte [esp + 0xfc], 5
call fcn.004bfa1a
mov esi, dword [esp + 0x18]
cmp dword [esi - 4], 1
jle 0x422634
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401a30
mov esi, dword [esp + 0x18]
push 3
push ebx
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, edi
je 0x422644
mov dword [esp + 0x34], eax
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x422650
mov ecx, dword [esp + 0x20]
fldz
push ecx
fst dword [esp + 0x54]
sub eax, edx
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x50]
push edx
fstp dword [esp + 0x60]
mov edx, dword [esp + 0x24]
fld dword [esp + 0x1c]
lea ecx, [esp + 0x58]
fstp dword [esp + 0x64]
push ecx
push edx
sar eax, 1
push eax
push esi
push ebx
call sub.gdiplus.dll_GdipDrawString
cmp eax, edi
je 0x42269d
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x18]
cmp edx, edi
jne 0x4226a9
xor eax, eax
jmp 0x4226c5
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4226b0
sub eax, esi
sar eax, 1
js 0x42278a
cmp eax, dword [edx - 8]
jg 0x42278a
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov word [ecx + eax*2], di
mov eax, dword [edx + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipCreateFromHDC
fldz
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
sub esp, 8
fst dword [esp + 4]
mov esi, eax
fstp dword [esp]
push edi
push eax
call sub.gdiplus.dll_GdipDrawImage
push esi
call sub.gdiplus.dll_GdipDeleteGraphics
mov byte [esp + 0xf8], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42273a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
call sub.gdiplus.dll_GdipDisposeImage
mov edx, dword [esp + 0x1c]
push edx
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x20]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004cf0b8
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401730
int3