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

Disassembly:
push 0xffffffffffffffff
push 0x457d06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
mov ebx, dword [esi + 0x60]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0xb8]
mov dword [esi + 0x70], ecx
mov edx, dword [eax]
mov dword [esi + 0x64], edx
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x68], ecx
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x6c]
cmp edx, ecx
mov dword [esp + 0x34], eax
mov eax, edx
mov dword [esp + 0x1c], eax
mov eax, ebx
push edi
mov edi, dword [esi + 0x70]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
jle 0x40fff8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
cmp ebx, edi
jle 0x410004
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], ebx
mov ecx, dword [esi + 0x5c]
cmp ecx, ebp
jle 0x410013
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x60]
cmp ecx, eax
jle 0x410022
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.user32.dll_UnionRect]
push 2
push 2
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.user32.dll_InflateRect]
lea ecx, [esp + 0x54]
call fcn.0044b19a
mov edi, dword [sym.imp.gdi32.dll_CreateCompatibleDC]
xor ebx, ebx
push ebx
mov dword [esp + 0xb8], ebx
call edi
push eax
lea ecx, [esp + 0x58]
call fcn.0044b636
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x410076
xor eax, eax
jmp 0x410079
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x58]
push eax
push edx
call fcn.0044b9bc
lea ecx, [esp + 0x64]
mov dword [esp + 0x4c], eax
call fcn.0044b19a
push ebx
mov byte [esp + 0xb8], 1
call edi
push eax
lea ecx, [esp + 0x68]
call fcn.0044b636
lea eax, [esi + 0x84]
cmp eax, ebx
je 0x4100c9
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x4100c9
push eax
mov eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esp + 0x30], eax
jmp 0x4100cd
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x80]
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x7c]
push 0xcc0020
push edx
push edi
push ebp
sub eax, edx
push eax
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x70]
push edx
push edi
push ecx
call dword [sym.imp.gdi32.dll_BitBlt]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebp
movzx eax, byte [esi + 0x7c]
mov dl, byte [esi + 0x7d]
mov cl, byte [esi + 0x7e]
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
movzx ecx, cl
shl eax, 8
lea edx, [esp + 0x10]
or eax, ecx
push edx
push eax
mov dword [esp + 0x8c], 0x45c394
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov edi, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], edi
mov dl, byte [esi + 0x78]
mov cl, byte [esi + 0x81]
mov al, byte [esi + 0x82]
xor ebx, ebx
mov bh, dl
movzx ecx, cl
movzx edx, al
mov bl, byte [esi + 0x80]
mov dword [esp + 0x90], 0x45c394
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, edx
lea ecx, [esp + 0x14]
mov eax, ebx
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x14]
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], edx
fild dword [esi + 0x74]
lea eax, [esp + 0x18]
push eax
fstp dword [esp + 0x54]
push ebx
mov ecx, dword [esp + 0x58]
push ecx
mov dword [esp + 0x24], ebx
push edi
call sub.gdiplus.dll_GdipCreatePen2
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x18]
push 1
push edx
mov byte [esp + 0xbc], 5
call sub.gdiplus.dll_GdipSetPenMode
cmp eax, ebx
je 0x4101fe
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov edx, dword [esi + 0x78]
sub edi, eax
sub ebx, ecx
test edx, edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
jle 0x41023e
push edi
push ebx
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
push ebp
call sub.gdiplus.dll_GdipFillRectangleI
test eax, eax
je 0x41023e
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x41026a
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x18]
push edi
push ebx
push ecx
push edx
push eax
push ebp
call sub.gdiplus.dll_GdipDrawRectangleI
test eax, eax
je 0x41026a
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x410275
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x58]
push eax
push ecx
call fcn.0044b9bc
lea ecx, [esp + 0x54]
call fcn.0044b69e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41029d
mov edx, dword [esp + 0x68]
push eax
push edx
call dword [sym.imp.gdi32.dll_SelectObject]
lea ecx, [esp + 0x64]
call fcn.0044b69e
mov eax, dword [esp + 0x18]
push eax
call sub.gdiplus.dll_GdipDeletePen
mov ecx, dword [esp + 0x14]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x10]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
push ebp
call sub.gdiplus.dll_GdipDeleteGraphics
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 0
call fcn.0044b6b4
lea ecx, [esp + 0x54]
mov dword [esp + 0xb4], 0xffffffff
call fcn.0044b6b4
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4