Function at 0x401dc0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x413610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, ecx
push edi
fld dword [esi + 0xd8]
fdiv dword [esi + 0xe4]
mov eax, dword [esi + 0xc4]
push eax
fstp dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esi + 0xf0], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [esi + 0xfc]
xor ebx, ebx
cmp eax, ebx
jne 0x401e36
fld dword [esp + 0x10]
fadd st(0), st(0)
call fcn.00403740
mov ecx, dword [esi + 0xf0]
push eax
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0xfc], eax
mov edx, dword [esi + 0xfc]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
fld dword [esp + 0x10]
fadd st(0), st(0)
mov dword [esp + 0x28], eax
call fcn.00403740
fild dword [esp + 0x9c]
mov ebp, eax
push 0xcc0020
fsub dword [esp + 0x14]
call fcn.00403740
fild dword [esp + 0x9c]
push eax
fsub dword [esp + 0x18]
call fcn.00403740
push eax
mov eax, dword [esi + 0xf0]
push eax
push ebp
push ebp
push ebx
push ebx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esi + 0xf0]
mov eax, dword [esi + 0xc4]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esi + 0x108]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebx
mov edx, dword [edi + 4]
push edx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x401ed4
mov dword [edi + 8], eax
mov edi, dword [esi + 0x108]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 4]
push ecx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x401ef3
mov dword [edi + 8], eax
mov edx, dword [esi + 0xbc]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, edi
mov dword [esp + 0x68], ecx
shl eax, 5
add eax, 0x1f
push ebx
sar eax, 3
and al, 0xfc
push ebx
imul ecx, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x7c], ecx
push eax
lea ecx, [esp + 0x6c]
push ebx
push ecx
push ebx
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x7c], edi
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x20
mov dword [esp + 0x88], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
imul ecx, edi
mov edi, dword [esp + 0x20]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xfc]
cmp eax, ebx
je 0x4020b4
cmp dword [esp + 0xa0], ebx
je 0x4020b4
mov ecx, dword [esi + 0xf8]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectClipRgn]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 0xfc]
push 0x10
mov dword [esp + 0x94], ebx
mov dword [esp + 0x30], ecx
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x40203a
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
push ebx
push eax
mov dword [edi], 0x41457c
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov ecx, dword [esp + 0x24]
mov dword [edi + 8], eax
mov dword [edi + 4], ecx
jmp 0x40203c
xor edi, edi
fld dword [esi + 0xd8]
fadd st(0), st(0)
cmp edi, ebx
fst dword [esp + 0x2c]
fstp dword [esp + 0x24]
fild dword [esi + 0xe0]
fsub dword [esi + 0xd8]
fstp dword [esp + 0x30]
fild dword [esi + 0xdc]
fsub dword [esi + 0xd8]
fstp dword [esp + 0x34]
je 0x402075
mov eax, dword [edi + 4]
jmp 0x402077
xor eax, eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRect
cmp eax, ebx
je 0x40209e
mov dword [esp + 0x44], eax
cmp edi, ebx
je 0x4020aa
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [esp + 0x14]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SelectClipRgn]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esi + 0x108]
mov dword [esp + 0x90], 1
cmp eax, ebx
je 0x4020f1
mov eax, dword [eax + 4]
jmp 0x4020f3
xor eax, eax
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
push edx
push edi
push ebx
push ebx
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectI
cmp eax, ebx
je 0x40210e
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x98]
mov ecx, dword [esi + 0xdc]
mov edx, dword [esi + 0xe0]
sub eax, ecx
mov ecx, dword [esp + 0x9c]
push str.UpdateLayeredWindow
sub ecx, edx
mov edx, dword [esp + 0x14]
push str.User32.dll
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x23], 1
mov byte [esp + 0x22], 0xff
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x18]
push 2
push ecx
lea edx, [esp + 0x50]
push ebx
push edx
lea ecx, [esp + 0x60]
push ebp
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [esi + 0xbc]
push edx
push ebx
push ecx
call eax
mov edx, dword [esp + 0x38]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0xbc]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0xfc]
push eax
call edi
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xfc], ebx
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 0xc