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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x457078]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDC]
push esi
push edi
push dword [0x45b8d0]
call ebx
mov edi, dword [0x45b8d8]
mov esi, dword [0x45b8d4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push 0
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x40d342
mov dword [edi + 8], eax
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0
call ebx
mov edi, dword [esp + 0x10]
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x14]
mov ebx, eax
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 4]
mov dword [esp + 0x24], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x40d398
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 4]
mov dword [esp + 0x18], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x40d3bd
mov dword [esi + 8], eax
push 0xcc0020
push 0
push 0
push ebx
push dword [esp + 0x34]
push dword [esp + 0x24]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
shl eax, 5
add eax, 0x1f
mov dword [esp + 0x64], 0x28
cdq
and edx, 0x1f
mov dword [esp + 0x6c], ecx
add eax, edx
mov dword [esp + 0x70], 0x200001
sar eax, 5
imul eax, ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
shl eax, 2
push eax
push 0x42
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [esp + 0x68]
mov dword [esp + 0x28], eax
push ecx
push eax
push dword [esp + 0x48]
push 0
push dword [esp + 0x28]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x10], ebx
test esi, esi
jle 0x40d52c
mov edx, dword [esp + 0x38]
jmp 0x40d490
mov ecx, dword [esp + 0x24]
mov eax, ebx
imul eax, edx
mov dword [esp + 0x1c], 0
lea ecx, [ecx + eax*4]
test edx, edx
jle 0x40d51f
mov ebx, dword [esp + 0x1c]
lea esp, [esp]
movzx edi, byte [ecx + 3]
lea ecx, [ecx + 4]
movzx esi, byte [ecx - 4]
mov eax, 0x80808081
imul esi, edi
inc ebx
imul esi
add edx, esi
movzx esi, byte [ecx - 3]
sar edx, 7
mov eax, edx
imul esi, edi
shr eax, 0x1f
add eax, edx
mov byte [ecx - 4], al
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx - 2]
sar edx, 7
mov eax, edx
imul esi, edi
shr eax, 0x1f
add eax, edx
mov byte [ecx - 3], al
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx - 2], al
mov edx, dword [esp + 0x38]
cmp ebx, edx
jl 0x40d4b0
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, esi
jl 0x40d490
mov esi, dword [0x45b8dc]
mov ebx, dword [0x45b8e0]
add esi, 2
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add ebx, 2
push 0
mov dword [esp + 0x1c], 0x1ff0000
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call edi
sub eax, esi
cdq
sub eax, edx
mov esi, eax
push 1
sar esi, 1
call edi
sub eax, ebx
mov dword [esp + 0x5c], esi
cdq
sub eax, edx
mov dword [esp + 0x10], 0
sar eax, 1
sub eax, 0xa
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov edi, edi
push 0
push dword [0x45b914]
call esi
test eax, eax
je 0x40d62e
push 0
push dword [0x45b870]
call esi
test eax, eax
je 0x40d61c
mov ecx, dword [0x45b910]
lea eax, [esp + 0x24]
push eax
call fcn.00410d30
push 2
mov bl, al
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x48]
push dword [0x45b8d0]
call edi
test bl, bl
je 0x40d5c0
jmp 0x40d62e
push 0
push 0
push 0x12
push dword [0x45b8d0]
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [esp + 0x30]
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x24]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043bfe6
mov esp, ebp
pop ebp
ret