Function at 0x401850
Capabilities:
Capture screenshot

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov edi, dword [0x406024]
mov ebp, dword [0x406020]
mov dword [esp], 0
call sub.USER32.dll_GetDC
sub esp, 4
mov dword [esp], eax
mov dword [esp + 0x50], eax
call sub.GDI32.dll_CreateCompatibleDC
sub esp, 4
test eax, eax
mov ebx, eax
je 0x401b24
mov esi, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.GDI32.dll_CreateCompatibleBitmap
sub esp, 0xc
test eax, eax
mov dword [esp + 0x54], eax
je 0x401b24
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_SelectObject
sub esp, 8
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x18], eax
call sub.GDI32.dll_BitBlt
sub esp, 0x24
test eax, eax
jne 0x401947
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
sub esp, 4
mov dword [esp], ebx
call sub.GDI32.dll_DeleteObject
sub esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp], 0
mov dword [esp + 4], eax
call sub.USER32.dll_ReleaseDC
sub esp, 8
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x54]
lea eax, [esp + 0x68]
mov dword [esp + 4], 0x18
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.GDI32.dll_GetObjectA
mov eax, dword [0x406008]
sub esp, 0xc
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.GDI32.dll_SelectObject
mov esi, dword [0x406024]
sub esp, 8
mov dword [0x406014], 0
test esi, esi
jle 0x401909
mov edx, esi
sar edx, 1
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fstp qword [esp]
call sub.msvcrt.dll_floor
mov ebp, dword [0x406020]
xor edx, edx
mov eax, edx
test ebp, ebp
mov dword [0x406010], 0
jle 0x401aee
mov edi, ebp
fstp qword [esp + 0x40]
mov dword [esp + 0x4c], eax
sar edi, 1
mov dword [esp + 0x38], edi
xor edi, edi
fild dword [esp + 0x38]
fstp qword [esp]
call sub.msvcrt.dll_floor
mov eax, dword [esp + 0x4c]
fld qword [esp + 0x40]
fxch st(1)
jmp 0x401a09
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fstp qword [esp]
call sub.msvcrt.dll_floor
mov eax, dword [0x406014]
fld qword [esp + 0x38]
fnstcw word [esp + 0x5e]
movzx edx, word [esp + 0x5e]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 4], eax
mov eax, dword [0x406008]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xac]
mov dh, 0xc
mov dword [esp + 8], edi
mov dword [esp + 0x28], 0xcc0020
mov word [esp + 0x5c], dx
mov dword [esp + 0x14], ebx
fldcw word [esp + 0x5c]
fistp dword [esp + 0x10]
fldcw word [esp + 0x5e]
mov dword [esp + 0x18], ecx
mov dword [esp], eax
fldcw word [esp + 0x5c]
fistp dword [esp + 0xc]
fldcw word [esp + 0x5e]
call sub.GDI32.dll_StretchBlt
mov ebp, dword [0x406020]
sub esp, 0x2c
mov eax, ebp
shr eax, 0x1f
add eax, ebp
sar eax, 1
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fstp qword [esp]
call sub.msvcrt.dll_floor
fnstcw word [esp + 0x5e]
movzx eax, word [esp + 0x5e]
mov esi, dword [0x406024]
mov ah, 0xc
mov word [esp + 0x5c], ax
mov eax, esi
fldcw word [esp + 0x5c]
fist dword [esp + 0x58]
fldcw word [esp + 0x5e]
shr eax, 0x1f
mov edi, dword [esp + 0x58]
add edi, dword [0x406010]
add eax, esi
sar eax, 1
fstp qword [esp + 0x38]
cmp ebp, edi
mov dword [0x406010], edi
jg 0x4019f0
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fstp qword [esp]
call sub.msvcrt.dll_floor
mov eax, dword [0x406014]
fnstcw word [esp + 0x5e]
movzx edx, word [esp + 0x5e]
mov dh, 0xc
mov word [esp + 0x5c], dx
fldcw word [esp + 0x5c]
fist dword [esp + 0x58]
fldcw word [esp + 0x5e]
mov edi, dword [esp + 0x58]
add eax, edi
cmp eax, esi
mov dword [0x406014], eax
jl 0x4019b0
fstp st(0)
jmp 0x401909
mov dword [esp + 0x54], 0
jmp 0x401909