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

Disassembly:
push 0xffffffffffffffff
push 0x5e52a2
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov ebp, dword [esp + 0x138]
push eax
mov dword [esp + 0x84], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ebx, ebx
mov esi, eax
xor eax, eax
push ebx
mov dword [esp + 0xb0], eax
push ebx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xdc]
push eax
push ebx
lea ecx, [esp + 0xb0]
push ecx
push ebx
mov dword [esp + 0x9c], esi
mov dword [esp + 0xec], ebx
mov dword [esp + 0xb8], 0x28
mov dword [esp + 0xbc], 0x3be
mov dword [esp + 0xc0], 0x296
mov word [esp + 0xc4], 1
mov word [esp + 0xc6], 0x20
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push esi
mov dword [esp + 0xf0], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0xd8], eax
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
lea eax, [esp + 0x70]
push eax
push ebx
mov dword [esp + 0x138], ebx
push 0x605a3c
mov dword [esp + 0x7c], ebx
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esp + 0x74], eax
fld dword [0x61ce50]
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x2c]
push ecx
push 2
push ebx
push ecx
fstp dword [esp]
push edx
mov dword [esp + 0x40], ebx
call sub.gdiplus.dll_GdipCreateFont
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], ebx
push 2
fld dword [0x61cf58]
mov edx, dword [esp + 0x78]
push 1
push ecx
fstp dword [esp]
push edx
call sub.gdiplus.dll_GdipCreateFont
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x60]
push ecx
mov edi, vtable.Gdiplus::SolidBrush.0
push 0xff92a7b7
mov dword [esp + 0xf4], edi
mov dword [esp + 0x68], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x60]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], edx
lea eax, [esp + 0x38]
push eax
push 0xffe8f4fb
mov dword [esp + 0xe0], edi
mov dword [esp + 0x40], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xdc], ecx
lea edx, [esp + 0x64]
push edx
push 0xff1414f0
mov dword [esp + 0x98], edi
mov dword [esp + 0x6c], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x94], eax
lea ecx, [esp + 0xc8]
push ecx
push ebx
push ebx
mov dword [esp + 0xd4], ebx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0xcc], eax
mov byte [esp + 0x130], 7
mov eax, dword [ebp + 0xe8]
cmp eax, ebx
je 0x406ef3
push ebx
mov edx, dword [eax + 4]
push ebx
push ebx
push 2
push 0x296
push 0x3be
push ebx
push ebx
push 0x296
push 0x3be
push ebx
push ebx
push edx
push esi
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x406ef3
mov dword [esp + 0x24], eax
cmp dword [ebp + 0xec], ebx
je 0x406f83
mov edi, dword [ebp + 0x134]
sub edi, dword [ebp + 0x12c]
mov edx, dword [ebp + 0x134]
sub edx, dword [ebp + 0x12c]
mov eax, dword [ebp + 0x138]
sub eax, dword [ebp + 0x130]
mov ecx, dword [ebp + 0x134]
sub ecx, dword [ebp + 0x12c]
push ebx
push ebx
push ebx
push 2
push eax
mov dword [esp + 0x2c], edi
mov edi, dword [ebp + 0x170]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
imul edi, dword [esp + 0x30]
mov edx, dword [ebp + 0x138]
sub edx, dword [ebp + 0x130]
push ecx
push ebx
push edi
push edx
push eax
mov eax, dword [ebp + 0x130]
push eax
mov eax, dword [ebp + 0x12c]
push eax
mov eax, dword [ebp + 0xec]
mov ecx, dword [eax + 4]
push ecx
push esi
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x406f83
mov dword [esp + 0x24], eax
cmp dword [ebp + 0xf0], ebx
je 0x407013
mov edi, dword [ebp + 0x144]
sub edi, dword [ebp + 0x13c]
mov edx, dword [ebp + 0x144]
sub edx, dword [ebp + 0x13c]
mov eax, dword [ebp + 0x148]
sub eax, dword [ebp + 0x140]
mov ecx, dword [ebp + 0x144]
sub ecx, dword [ebp + 0x13c]
push ebx
push ebx
push ebx
push 2
push eax
mov eax, dword [ebp + 0x140]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x148]
sub edx, dword [ebp + 0x140]
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0x1b8]
imul edi, dword [esp + 0x2c]
push ecx
push ebx
push edi
push edx
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [ebp + 0x13c]
push eax
mov eax, dword [ebp + 0xf0]
mov eax, dword [eax + 4]
push eax
push esi
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x407013
mov dword [esp + 0x24], eax
cmp dword [ebp + 0xf4], ebx
je 0x4070a3
mov edi, dword [ebp + 0x104]
sub edi, dword [ebp + 0xfc]
mov edx, dword [ebp + 0x104]
sub edx, dword [ebp + 0xfc]
mov eax, dword [ebp + 0x108]
sub eax, dword [ebp + 0x100]
mov ecx, dword [ebp + 0x104]
sub ecx, dword [ebp + 0xfc]
push ebx
push ebx
push ebx
push 2
push eax
mov eax, dword [ebp + 0x100]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x108]
sub edx, dword [ebp + 0x100]
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0x16c]
imul edi, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push ebx
push edi
push edx
push ecx
push eax
mov eax, dword [ebp + 0xfc]
push eax
mov eax, dword [ebp + 0xf4]
mov edx, dword [eax + 4]
push edx
push esi
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x4070a3
mov dword [esp + 0x24], eax
cmp dword [ebp + 0xf8], ebx
je 0x40730f
mov eax, dword [ebp + 0x194]
lea ecx, [ebp + 0x180]
push 0x6190bc
xor edi, edi
call fcn.00402d90
test eax, eax
je 0x4071df
mov eax, dword [ebp + 0x114]
sub eax, dword [ebp + 0x10c]
mov ecx, dword [ebp + 0x114]
sub ecx, dword [ebp + 0x10c]
mov edi, dword [ebp + 0x114]
sub edi, dword [ebp + 0x10c]
mov esi, dword [ebp + 0x118]
sub esi, dword [ebp + 0x110]
mov edx, dword [ebp + 0x118]
sub edx, dword [ebp + 0x110]
push eax
mov eax, dword [ebp + 0x17c]
imul eax, ecx
mov ecx, dword [ebp + 0xf8]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 0x10c]
mov dword [esp + 0x40], edi
mov edi, dword [ebp + 0x110]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x4c], esi
push eax
lea eax, [esp + 0x44]
lea esi, [esp + 0x28]
mov dword [esp + 0x4c], edi
call fcn.00402eb0
mov esi, 8
cmp dword [ebp + 0x198], esi
jb 0x407162
mov eax, dword [ebp + 0x184]
jmp 0x407168
lea eax, [ebp + 0x184]
lea edx, [eax + 2]
jmp 0x407170
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407170
fild dword [ebp + 0x10c]
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x198], esi
fadd qword [0x61cf50]
fstp dword [esp + 0x18]
fild dword [ebp + 0x110]
fadd qword [0x61cdf8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x40]
jb 0x4071bf
mov ecx, dword [ebp + 0x184]
jmp 0x4071c5
lea ecx, [ebp + 0x184]
push eax
push ecx
lea ecx, [esp + 0xf4]
lea eax, [esp + 0x44]
lea edx, [esp + 0x60]
lea esi, [esp + 0x28]
call fcn.00402e50
mov eax, dword [ebp + 0x1b0]
lea ecx, [ebp + 0x19c]
push 0x6190bc
xor edi, edi
call fcn.00402d90
test eax, eax
je 0x40730f
mov eax, dword [ebp + 0x124]
sub eax, dword [ebp + 0x11c]
mov ecx, dword [ebp + 0x124]
sub ecx, dword [ebp + 0x11c]
mov edi, dword [ebp + 0x124]
sub edi, dword [ebp + 0x11c]
mov esi, dword [ebp + 0x128]
sub esi, dword [ebp + 0x120]
mov edx, dword [ebp + 0x128]
sub edx, dword [ebp + 0x120]
push eax
mov eax, dword [ebp + 0x178]
imul eax, ecx
mov ecx, dword [ebp + 0xf8]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 0x11c]
mov dword [esp + 0x40], edi
mov edi, dword [ebp + 0x120]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x4c], esi
push eax
lea eax, [esp + 0x44]
lea esi, [esp + 0x28]
mov dword [esp + 0x4c], edi
call fcn.00402eb0
mov esi, 8
cmp dword [ebp + 0x1b4], esi
jb 0x407292
mov eax, dword [ebp + 0x1a0]
jmp 0x407298
lea eax, [ebp + 0x1a0]
lea edx, [eax + 2]
jmp 0x4072a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4072a0
fild dword [ebp + 0x11c]
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x1b4], esi
fadd qword [0x61cf50]
fstp dword [esp + 0x18]
fild dword [ebp + 0x120]
fadd qword [0x61cdf8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x40]
jb 0x4072ef
mov ecx, dword [ebp + 0x1a0]
jmp 0x4072f5
lea ecx, [ebp + 0x1a0]
push eax
push ecx
lea ecx, [esp + 0xf4]
lea eax, [esp + 0x44]
lea edx, [esp + 0x60]
lea esi, [esp + 0x28]
call fcn.00402e50
cmp byte [ebp + 0x68c], bl
jne 0x40735a
fild dword [ebp + 0x15c]
push 8
push 0x60a4d4
lea ecx, [esp + 0x98]
fstp dword [esp + 0x20]
lea eax, [esp + 0x44]
fild dword [ebp + 0x160]
lea edx, [esp + 0x60]
lea esi, [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
fstp dword [esp + 0x44]
fld dword [esp + 0x24]
fstp dword [esp + 0x48]
call fcn.00402e50
lea edi, [ebp + 0x220]
push edi
mov ebx, 0x60a4e8
lea esi, [esp + 0x10c]
call fcn.0040c140
add esp, 4
mov byte [esp + 0x130], 8
mov esi, dword [esp + 0x120]
cmp esi, 8
mov ebx, dword [esp + 0x10c]
mov eax, ebx
jae 0x407399
lea eax, [esp + 0x10c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4073a0
fld dword [0x61cf4c]
sub eax, edx
fstp dword [esp + 0x3c]
sar eax, 1
cmp esi, 8
fld dword [0x61ceb8]
fstp dword [esp + 0x40]
mov ecx, ebx
jae 0x4073d1
lea ecx, [esp + 0x10c]
push eax
push ecx
lea ecx, [esp + 0xe0]
lea eax, [esp + 0x44]
lea edx, [esp + 0x38]
lea esi, [esp + 0x28]
call fcn.00402e50
push edi
mov edx, 0x60a4f4
lea edi, [esp + 0x40]
call fcn.00402c10
add esp, 4
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0x110]
mov byte [esp + 0x138], 9
call fcn.00402580
mov edi, 8
cmp dword [esp + 0x54], edi
jb 0x40742e
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0059b877
add esp, 4
lea edx, [esp + 0x88]
push edx
push ebx
push ebx
mov dword [esp + 0x94], ebx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x68]
push eax
push ebx
mov dword [esp + 0x70], ebx
call sub.gdiplus.dll_GdipCreatePath
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x78]
push ecx
push esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call sub.gdiplus.dll_GdipGetFamily
cmp eax, ebx
je 0x407487
mov dword [esp + 0x7c], eax
mov dword [esp + 0x5c], eax
fldz
lea edx, [esp + 0x18]
push edx
fst dword [esp + 0x34]
push esi
fstp dword [esp + 0x3c]
call sub.gdiplus.dll_GdipGetFontSize
cmp eax, ebx
je 0x4074a4
mov dword [esp + 0x5c], eax
fld dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
fstp dword [esp + 0x20]
push esi
call sub.gdiplus.dll_GdipGetFontStyle
cmp eax, ebx
je 0x4074bf
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x120], edi
mov eax, dword [esp + 0x10c]
jae 0x4074d6
lea eax, [esp + 0x10c]
fld dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x40]
fstp dword [esp]
push ecx
push eax
lea ecx, [esp + 0x94]
lea eax, [esp + 0x3c]
lea edx, [esp + 0x84]
lea esi, [esp + 0x74]
call fcn.0040cbe0
fldz
mov eax, dword [esp + 0x68]
fst dword [esp + 0x104]
push ebx
fst dword [esp + 0x104]
push ebx
fst dword [esp + 0x104]
lea edx, [esp + 0x100]
fstp dword [esp + 0x100]
push edx
push eax
call sub.gdiplus.dll_GdipGetPathWorldBounds
cmp eax, ebx
je 0x407539
mov dword [esp + 0x6c], eax
fld dword [esp + 0x100]
call fcn.005c04e0
mov ecx, dword [ebp + 0x154]
sub ecx, dword [ebp + 0x14c]
mov esi, eax
cmp esi, ecx
mov dword [esp + 0x3c], esi
jle 0x4076e7
mov esi, dword [esp + 0x80]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp + 0x154]
sub ecx, dword [ebp + 0x14c]
mov edi, eax
mov eax, dword [ebp + 0x158]
sub eax, dword [ebp + 0x150]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov eax, dword [ebp + 0x154]
mov esi, dword [ebp + 0x280]
sub eax, dword [ebp + 0x14c]
mov ebx, dword [esp + 0x1c]
neg esi
cmp esi, eax
mov dword [esp + 0xd8], esi
jge 0x40768f
mov ecx, dword [esp + 0x3c]
add ecx, 0xa
mov dword [esp + 0x3c], ecx
lea esp, [esp]
cmp dword [esp + 0x120], 8
mov eax, dword [esp + 0x10c]
jae 0x4075f8
lea eax, [esp + 0x10c]
lea edx, [eax + 2]
jmp 0x407600
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407600
fild dword [esp + 0xd8]
mov ecx, dword [esp + 0x10c]
sub eax, edx
sar eax, 1
cmp dword [esp + 0x120], 8
fstp dword [esp + 0x30]
jae 0x407632
lea ecx, [esp + 0x10c]
mov edx, dword [esp + 0x38]
fld dword [esp + 0x30]
push edx
fstp dword [esp + 0x94]
fldz
push 0
lea edx, [esp + 0x98]
fst dword [esp + 0x9c]
push edx
fst dword [esp + 0xa4]
mov edx, dword [esp + 0x38]
fstp dword [esp + 0xa8]
push edx
push eax
push ecx
push ebx
call sub.gdiplus.dll_GdipDrawString
mov eax, dword [ebp + 0x154]
add esi, dword [esp + 0x3c]
sub eax, dword [ebp + 0x14c]
mov dword [esp + 0xd8], esi
cmp esi, eax
jl 0x4075e0
mov ecx, dword [ebp + 0x158]
sub ecx, dword [ebp + 0x150]
mov edx, dword [ebp + 0x154]
sub edx, dword [ebp + 0x14c]
mov eax, dword [ebp + 0x150]
mov esi, dword [esp + 0x84]
push 0xee0066
push 0
push 0
push edi
push ecx
mov ecx, dword [ebp + 0x14c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp + 0x20]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
xor ebx, ebx
jmp 0x407778
mov edi, dword [esp + 0x120]
cmp edi, 8
mov eax, dword [esp + 0x10c]
jae 0x407701
lea eax, [esp + 0x10c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407704
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp + 0x154]
sub eax, dword [ebp + 0x14c]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
cmp edi, 8
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
mov eax, dword [esp + 0x10c]
fiadd dword [ebp + 0x14c]
fstp dword [esp + 0x30]
fild dword [ebp + 0x150]
fstp dword [esp + 0x34]
jae 0x407757
lea eax, [esp + 0x10c]
push ecx
push eax
lea ecx, [esp + 0xe0]
lea eax, [esp + 0x38]
lea edx, [esp + 0x60]
lea esi, [esp + 0x28]
call fcn.00402e50
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push 0xcc0020
push ebx
push ebx
push esi
push 0x296
push 0x3be
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [esp + 0x20]
push esi
push edi
call sub.gdiplus.dll_GdipReleaseDC
mov ecx, dword [esp + 0xd0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xe8]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x78]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
mov ecx, dword [esp + 0x68]
push ecx
call sub.gdiplus.dll_GdipDeletePath
mov edx, dword [esp + 0x88]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
cmp dword [esp + 0x120], 8
jb 0x407804
mov eax, dword [esp + 0x10c]
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0xc8]
push ecx
mov dword [esp + 0x124], 7
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], bx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edx, dword [esp + 0x64]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x38]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x60]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x28]
push edx
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x2c]
push eax
call sub.gdiplus.dll_GdipDeleteFont
mov ecx, dword [esp + 0x70]
push ecx
call sub.gdiplus.dll_GdipDeleteFontFamily
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b88a9
add esp, 0x120
ret 8