Function at 0x4022d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
push esi
push edi
mov esi, ecx
push 0
lea edi, [esi + 0x1c]
call ebx
push 1
mov dword [edi], eax
call ebx
push 0
push 0
push 0
push str.DISPLAY
mov dword [esi + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebx
mov dword [esp + 0x18], ebx
call ebp
push ebx
mov dword [esp + 0x14], eax
call ebp
mov ebp, eax
mov eax, dword [esi + 0x440]
mov dword [esp + 0x18], ebp
test eax, eax
je 0x40232d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x28]
push 0xf4
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
call ebp
fild dword [edi]
mov ecx, dword [0x419034]
add ecx, 2
fmul qword [0x415ec0]
push ecx
mov dword [esp + 0x24], eax
fdiv qword [0x415e90]
fadd qword [0x415ef0]
call fcn.004039f0
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x10]
push eax
push edx
mov dword [esi + 0x440], eax
call ebp
mov dword [esp + 0x1c], eax
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x419034]
mov edx, dword [str._n2_n_nf]
push 0xcc0020
push 0
push 0
push eax
push ecx
mov ecx, dword [edi]
imul ecx, ebx
push edx
mov eax, 0x3e0f83e1
imul ecx
mov ecx, dword [esp + 0x28]
sar edx, 3
mov eax, edx
shr eax, 0x1f
push 0
add eax, edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
inc ebx
cmp ebx, 0x20
jl 0x402390
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ebx
push edx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
mov edx, dword [esp + 0x1c]
push edx
call ebx
mov eax, dword [esp + 0x24]
push eax
call ebx
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x14]
push ecx
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x444]
test eax, eax
je 0x402446
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esi + 0x28]
push 0x101
push edx
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push eax
call ebp
fild dword [edi]
mov ecx, dword [0x41903c]
add ecx, 2
fmul qword [0x415ec0]
push ecx
mov dword [esp + 0x28], eax
fdiv qword [0x415e90]
fadd qword [0x415ef0]
call fcn.004039f0
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esi + 0x444], eax
call ebp
mov dword [esp + 0x20], eax
xor esi, esi
jmp 0x4024b0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x41903c]
mov edx, dword [0x419038]
push 0xcc0020
push 0
push 0
push eax
push ecx
mov ecx, dword [edi]
imul ecx, esi
push edx
mov eax, 0x3e0f83e1
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
push 0
add eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
inc esi
cmp esi, 0x20
jl 0x4024b0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push esi
push ecx
call ebp
mov edi, dword [esp + 0x20]
push edi
push ebx
call ebp
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push edi
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret