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

Disassembly:
push 0xffffffffffffffff
push 0x4f05c8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
xor ebp, ebp
cmp dword [esi + 0xd8], ebp
je 0x421a4f
mov eax, dword [esi + 0x18]
sub eax, 0x10
push eax
call fcn.00401850
add eax, 0x10
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x80], ebp
cmp dword [eax - 4], 1
jle 0x4216cb
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401a30
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
sub ecx, dword [esp + 0x90]
push eax
push ecx
call fcn.00423080
add esp, 8
cmp eax, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebp
je 0x42170f
mov edx, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov byte [esp + 0x80], 1
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esi + ecx*4 + 0xdc]
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
push ebx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x38], eax
mov eax, dword [esi + ecx*4 + 0x124]
cmp eax, ebp
jne 0x421753
mov eax, dword [esi + 0x124]
cmp eax, ebp
mov dword [esp + 0x2c], ebp
je 0x421769
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateFontFromDC
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edx
movzx eax, bl
or eax, 0xffffff00
movzx ecx, bh
shl eax, 8
or eax, ecx
shr ebx, 0x10
movzx edx, bl
shl eax, 8
lea ecx, [esp + 0x8c]
or eax, edx
push ecx
push eax
mov dword [esp + 0x64], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x94], ebp
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
push 7
push eax
call sub.gdiplus.dll_GdipSetInterpolationMode
cmp eax, ebp
je 0x4217fc
mov dword [esp + 0x50], eax
lea edx, [esp + 0x3c]
push edx
push ebp
push ebp
mov dword [esp + 0x48], ebp
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x40], eax
cmp dword [esi + 0x180], ebp
je 0x42182c
mov eax, dword [esp + 0x3c]
push 1
push eax
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, ebp
je 0x42182c
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x3c]
push 2
push ecx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebp
je 0x421840
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x3c]
push 1
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebp
je 0x421854
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x18]
push 3
push ebx
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, ebp
je 0x421868
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0x20]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x421871
mov ecx, dword [esp + 0x9c]
fldz
sub ecx, dword [esp + 0x94]
fst dword [esp + 0x68]
sub eax, edx
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x98]
sub edx, dword [esp + 0x90]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x8c]
push ecx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x40]
fild dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x70]
fstp dword [esp + 0x78]
fild dword [esp + 0x38]
push ecx
push edx
sar eax, 1
push eax
fstp dword [esp + 0x88]
push esi
push ebx
call sub.gdiplus.dll_GdipDrawString
cmp eax, ebp
je 0x4218e8
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x88]
cmp dword [eax + 0x180], ebp
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], ebp
je 0x421922
mov ebx, esi
mov dword [esp + 0x24], 1
call fcn.004137d0
mov esi, eax
mov ecx, dword [esi + 4]
push 4
push ecx
call sub.gdiplus.dll_GdipImageRotateFlip
cmp eax, ebp
je 0x421922
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x88]
push edx
push eax
mov dword [esp + 0x90], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], eax
mov byte [esp + 0x80], 6
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov ebx, dword [esp + 0x90]
sub eax, edx
sub ecx, ebx
cmp esi, ebp
je 0x42197a
mov ebp, dword [esi + 4]
jmp 0x42197c
xor ebp, ebp
push 0
push 0
push 0
push 2
push eax
push ecx
push 0
push 0
push eax
push ecx
push edx
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push ebx
call sub.gdiplus.dll_GdipDrawImageRectRectI
test eax, eax
je 0x4219a4
mov dword [esp + 0x34], eax
cmp dword [esp + 0x24], 0
je 0x4219b9
test esi, esi
je 0x4219b9
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4219c9
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edx, dword [edi]
mov eax, dword [esp + 0x38]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4219e9
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x3c]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edx, dword [esp + 0x1c]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x8c]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x14]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
mov edx, dword [esp + 0x18]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x18