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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42563b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4300a0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + eax*4 + 0x40]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x20]
push ecx
xor ebx, ebx
push edx
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x406267
mov dword [edi + 8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x44], eax
mov edi, dword [esi + ecx*4 + 0x40]
mov eax, dword [edi + 4]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40628f
mov dword [edi + 8], eax
mov eax, dword [esi - 0x20]
mov ecx, dword [esp + 0x20]
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
mov eax, dword [esi - 0x20]
push edi
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x4c]
push ebx
mov dword [esp + 0x74], eax
lea eax, [esp + 0xa8]
push eax
mov ecx, 1
mov word [esp + 0x7c], cx
push ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], edx
push ecx
mov edx, 0x20
push ebx
mov dword [esp + 0x7c], 0x28
mov word [esp + 0x8a], dx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push ebp
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 8
mov dword [esp + 0x60], eax
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x40636e
lea edx, [esp + 0x18]
push edx
push ebp
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [edi], eax
jmp 0x406370
xor edi, edi
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + ecx*4 + 0x40]
mov dword [esp + 0x24], edi
cmp eax, ebx
je 0x406384
mov eax, dword [eax + 4]
jmp 0x406386
xor eax, eax
mov edx, dword [edi]
push ebx
push ebx
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageI
cmp eax, ebx
je 0x406398
mov dword [edi + 4], eax
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x1c], ebx
cmp eax, ecx
jbe 0x40657c
xor edi, edi
cmp ebx, eax
jae 0x40664f
mov eax, dword [esi + 0xc]
add eax, edi
cmp byte [eax + 0xc], 0
jne 0x406569
cmp ebx, dword [esi + 0x48]
jae 0x40664f
mov eax, dword [esi + 0x44]
add eax, edi
cmp byte [eax + 0xc], 0
je 0x406462
cmp ebx, dword [esi + 0x10]
jae 0x40664f
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + edi + 4]
add eax, edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x406405
mov dword [ebp + 8], eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], edx
cmp ebx, dword [esi + 0x10]
jae 0x40664f
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + edi + 4]
mov ecx, dword [ebp + 4]
add eax, edi
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x40643c
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x18]
shr eax, 2
xor ecx, ecx
mov dword [esp + 0x18], eax
cmp ebx, dword [esi + 0x10]
jae 0x40664f
mov edx, dword [esi + 0xc]
add edx, edi
mov edx, dword [edx + 8]
imul edx, eax
jmp 0x4064f2
cmp ebx, dword [esi + 0x10]
jae 0x40664f
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + edi + 4]
add eax, edi
mov eax, dword [ebp + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ecx
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x40648d
mov dword [ebp + 8], eax
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
shr ebx, 2
mov dword [esp + 0x30], ebx
cmp ecx, dword [esi + 0x10]
jae 0x40664f
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + edi + 4]
add eax, edi
mov eax, dword [ebp + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4064cb
mov dword [ebp + 8], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
cmp edx, dword [esi + 0x10]
jae 0x40664f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi + 8]
add eax, edi
imul ecx, ebx
mov ebx, dword [esp + 0x1c]
xor edx, edx
cmp ebx, dword [esi + 0x48]
jae 0x40664f
mov ebp, dword [esi + 0x44]
add ebp, edi
cmp ebx, dword [esi + 0x48]
jae 0x40664f
mov ebx, dword [esi + 0x44]
mov eax, dword [esp + 0x1c]
add ebx, edi
cmp eax, dword [esi + 0x10]
jae 0x40664f
mov eax, dword [esi + 0xc]
mov ebp, dword [ebp + 4]
mov ebx, dword [ebx]
add eax, edi
mov eax, dword [eax + 4]
test eax, eax
je 0x406535
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], eax
jmp 0x40653d
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x18]
push 2
push eax
mov eax, dword [esp + 0x38]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x50]
push ebp
push ebx
mov ebx, dword [esp + 0x40]
mov edx, dword [ebx]
push ecx
push edx
call sub.gdiplus.dll_GdipDrawImagePointRectI
test eax, eax
je 0x406565
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x1c]
inc ebx
add edi, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esi + 0x10]
jb 0x4063b3
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x30], ecx
jbe 0x406694
mov dword [esp + 0x18], 0
mov ebp, dword [esp + 0x1c]
cmp ebp, dword [esi + 0x30]
jae 0x40664f
mov eax, dword [esi + 0x2c]
lea edi, [ebp*8]
mov ebx, dword [eax + edi]
mov ecx, dword [ebx + 4]
add eax, edi
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x44], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4065ca
mov dword [ebx + 8], eax
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], edx
cmp ebp, dword [esi + 0x30]
jae 0x40664f
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax + edi]
mov ecx, dword [ebx + 4]
add eax, edi
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x38], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4065fc
mov dword [ebx + 8], eax
cmp ebp, dword [esi + 0x30]
jae 0x40664f
mov eax, dword [esi + 0x2c]
add eax, edi
cmp ebp, dword [esi + 0x68]
jae 0x40664f
mov ebx, dword [esi + 0x64]
add ebx, dword [esp + 0x18]
cmp ebp, dword [esi + 0x68]
jae 0x40664f
mov ebp, dword [esi + 0x64]
mov edx, dword [esp + 0x1c]
add ebp, dword [esp + 0x18]
cmp edx, dword [esi + 0x30]
jae 0x40664f
mov edx, dword [eax + 4]
imul edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x2c]
mov ebx, dword [ebx + 4]
mov ebp, dword [ebp]
mov eax, 0x51eb851f
mul edx
add ecx, edi
mov ecx, dword [ecx]
shr edx, 5
test ecx, ecx
je 0x406659
mov ecx, dword [ecx + 4]
jmp 0x40665b
push 0x80070057
call fcn.00403030
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
push 2
push eax
push edx
push 0
push 0
push ebx
push ebp
push ecx
mov ecx, dword [edi]
push ecx
call sub.gdiplus.dll_GdipDrawImagePointRectI
test eax, eax
je 0x40667d
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0xc
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x30]
jb 0x406591
xor ebp, ebp
cmp dword [esi + 0x78], ebp
jbe 0x4068c5
xor edi, edi
mov ecx, dword [esp + 0x20]
xor ebx, ebx
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov eax, dword [esi + 0x74]
add eax, edi
add eax, 0x14
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x4066ca
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call sub.gdiplus.dll_GdipCreateFontFromLogfontW
jmp 0x4066d5
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.gdiplus.dll_GdipCreateFontFromDC
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xb0], ebx
fldz
fst dword [esp + 0x58]
fst dword [esp + 0x54]
fst dword [esp + 0x50]
fstp dword [esp + 0x4c]
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov eax, dword [esi + 0x74]
fild dword [eax + edi]
add eax, edi
fstp dword [esp + 0x4c]
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov eax, dword [esi + 0x74]
fild dword [eax + edi + 4]
add eax, edi
fstp dword [esp + 0x50]
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov ecx, dword [esi + 0x74]
add ecx, edi
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov eax, dword [esi + 0x74]
mov edx, dword [ecx + 8]
sub edx, dword [eax + edi]
add eax, edi
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
fstp dword [esp + 0x54]
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov ecx, dword [esi + 0x74]
add ecx, edi
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov eax, dword [esi + 0x74]
mov ecx, dword [ecx + 0xc]
sub ecx, dword [eax + edi + 4]
add eax, edi
lea edx, [esp + 0x28]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
push edx
push ebx
push ebx
fstp dword [esp + 0x64]
mov dword [esp + 0x34], ebx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x2c], eax
mov byte [esp + 0xb0], 1
mov eax, dword [esp + 0x28]
push ebx
push eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebx
je 0x4067b1
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
push 1
push ecx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x4067c5
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x28]
push 0x1000
push edx
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, ebx
je 0x4067dc
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push 3
push eax
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, ebx
je 0x4067f0
mov dword [esp + 0x2c], eax
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov eax, dword [esi + 0x74]
add eax, edi
mov eax, dword [eax + 0x70]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x9c], 0x42a510
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateSolidFill
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ebx
mov byte [esp + 0xb0], 2
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov eax, dword [esi + 0x74]
mov edx, dword [eax + edi + 0x74]
mov ecx, dword [edx - 0xc]
add eax, edi
cmp ebp, dword [esi + 0x78]
jae 0x40664f
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x74]
push ebx
push edx
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x28]
push edx
add eax, edi
mov eax, dword [eax + 0x74]
push ecx
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
push ecx
call sub.gdiplus.dll_GdipDrawString
test eax, eax
je 0x406888
mov edx, dword [esp + 0x24]
mov dword [edx + 4], eax
push ebx
mov dword [esp + 0x98], vtable.Gdiplus::Brush.0
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x28]
push eax
call sub.gdiplus.dll_GdipDeleteStringFormat
mov dword [esp + 0xb0], 0xffffffff
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
inc ebp
add edi, 0x78
cmp ebp, dword [esi + 0x78]
jb 0x4066a1
mov edi, dword [esp + 0x24]
mov edx, dword [edi]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
call sub.gdiplus.dll_GdipFree
mov edi, dword [esp + 0x20]
mov esi, dword [esi - 0x20]
push 2
lea ecx, [esp + 0x3c]
push ecx
push 0xff00ff
lea edx, [esp + 0x98]
push edx
xor eax, eax
push edi
lea ecx, [esp + 0x58]
push ecx
push eax
push eax
push esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0x5c], al
mov byte [esp + 0x5d], al
mov byte [esp + 0x5e], 0xff
mov byte [esp + 0x5f], 1
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov edx, dword [esp + 0x5c]
push edx
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, esi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret