Function at 0x40f370
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4632a2
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x47e820]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40f844
push 0xff6400
lea ecx, [esp + 0x20]
call fcn.00428755
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov dword [esp + 0x5c], edi
call fcn.00428672
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 8
call fcn.00424b1e
add esp, 4
cmp eax, edi
je 0x40f3f3
mov dword [eax + 4], edi
mov dword [eax], vtable.CBitmap.0
mov edi, eax
push 0x10
call fcn.00424b1e
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x58], 1
je 0x40f415
mov ecx, eax
call fcn.00427cd5
mov esi, eax
jmp 0x40f417
xor esi, esi
test ebx, ebx
mov byte [esp + 0x58], 0
jne 0x40f424
xor eax, eax
jmp 0x40f427
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0042828a
call fcn.0042fc51
mov eax, dword [eax + 0xc]
push 0xd4
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.00428551
mov ecx, dword [edi + 4]
lea eax, [esp + 0x34]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [edi + 4]
mov edx, dword [esi + 4]
push eax
push edx
call fcn.0042861f
mov ecx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov edx, ecx
sub edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
sub edx, eax
sub edx, 3
mov dword [esp + 0x14], 0
js 0x40f4df
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push 0
push edx
push ecx
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
lea ecx, [edx + eax - 3]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
sub edx, eax
sub edx, 3
cmp ecx, edx
jle 0x40f497
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 4]
sub ecx, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x4c]
push edx
push eax
sub ecx, eax
mov eax, dword [ebp + 0xc]
push 0
push ecx
mov ecx, dword [eax + 4]
push ecx
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f50f
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
push eax
push edx
call fcn.0042861f
mov ecx, edi
call fcn.004285a4
call fcn.0042fc51
mov eax, dword [eax + 0xc]
push 0x94
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.00428551
mov ecx, dword [edi + 4]
lea eax, [esp + 0x34]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [edi + 4]
mov edx, dword [esi + 4]
push eax
push edx
call fcn.0042861f
mov ecx, dword [esp + 0x30]
mov edx, ecx
sub edx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
sub edx, eax
cmp edx, 1
mov dword [esp + 0x14], 1
jl 0x40f5c0
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0xc]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [edx + 4]
push ecx
push 0
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
lea edx, [ecx + eax - 3]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
sub ecx, eax
cmp edx, ecx
jle 0x40f57b
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 4]
sub ecx, dword [esp + 0x28]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x48]
push eax
sub ecx, eax
mov eax, dword [ebp + 0xc]
push edx
push ecx
mov ecx, dword [eax + 4]
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f5f0
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
push eax
push edx
call fcn.0042861f
mov ecx, edi
call fcn.004285a4
call fcn.0042fc51
mov eax, dword [eax + 0xc]
push 0x97
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.00428551
mov ecx, dword [edi + 4]
lea eax, [esp + 0x34]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [edi + 4]
mov edx, dword [esi + 4]
push eax
push edx
call fcn.0042861f
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov edx, eax
sub edx, dword [esp + 0x28]
mov dword [esp + 0x14], 1
sub edx, ecx
cmp edx, 1
jl 0x40f6ac
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0xcc0020
sub eax, dword [esp + 0x3c]
push 0
push 0
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
lea eax, [edx + ecx - 3]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
sub edx, ecx
cmp eax, edx
jle 0x40f65c
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edx, dword [esi + 4]
push 0xcc0020
push 0
sub eax, ecx
push 0
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
sub eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f6ef
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
push eax
push edx
call fcn.0042861f
mov ecx, edi
call fcn.004285a4
call fcn.0042fc51
mov eax, dword [eax + 0xc]
push 0x95
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.00428551
mov ecx, dword [edi + 4]
lea eax, [esp + 0x34]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [edi + 4]
mov edx, dword [esi + 4]
push eax
push edx
call fcn.0042861f
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x14], 3
sub eax, ecx
sub eax, 3
cmp eax, 3
jl 0x40f7a9
lea esp, [esp]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 0xcc0020
sub eax, dword [esp + 0x40]
push 0
push 0
push edx
mov edx, dword [esp + 0x4c]
push edx
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x30]
push eax
push edx
call ebx
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x14], ecx
sub eax, ecx
sub eax, 3
cmp dword [esp + 0x14], eax
jle 0x40f760
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edx, dword [esi + 4]
sub eax, dword [esp + 0x3c]
push 0xcc0020
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [ebp + 0xc]
push ecx
sub eax, ecx
mov ecx, dword [esp + 0x2c]
sub eax, 3
push ecx
push eax
mov eax, dword [edx + 4]
push eax
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f7f3
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.0042861f
mov ecx, edi
call fcn.004285a4
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push edx
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CGdiObject.0
call fcn.004285a4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8