Function at 0x4056c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4320b8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [esi + 0x9c]
cmp dword [esi + 0x74], ebx
jg 0x405711
mov eax, dword [esi + 0xa0]
cmp dword [esi + 0x78], eax
mov dword [esp + 0x10], eax
jg 0x405711
mov dword [esi + 0xc8], 0
jmp 0x405739
cmp ebx, 0x64
mov eax, 0x64
jg 0x40571d
mov eax, ebx
mov ecx, dword [esi + 0xa0]
cmp eax, ecx
mov dword [esi + 0xc8], eax
mov dword [esp + 0x10], ecx
jl 0x405733
mov eax, ecx
mov dword [esi + 0xc8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x405987
cmp dword [esi + 0xa8], 0
je 0x40575a
lea ecx, [esi + 0xa4]
call fcn.00415b68
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00415aeb
mov edx, dword [ebp + 8]
mov edi, eax
lea eax, [esi + 0x84]
push eax
push edx
lea ecx, [esi + 0x9c]
mov edx, edi
mov dword [esp + 0x1c], edi
call fcn.00408120
add esp, 8
test edi, edi
jne 0x405793
xor eax, eax
jmp 0x405796
mov eax, dword [edi + 4]
push eax
lea edi, [esi + 0xa4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.00415aff
cmp dword [esi + 0xbc], 0
je 0x4057bf
lea ecx, [esi + 0xb8]
call fcn.00415d9a
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x9c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esi + 0xb8]
call fcn.00415d42
lea eax, [esi + 0xb8]
test eax, eax
je 0x4057f4
mov eax, dword [eax + 4]
mov edx, dword [esi + 0xa8]
push eax
push edx
call fcn.00415dd1
lea ecx, [esp + 0x2c]
mov dword [esi + 0xb4], eax
call fcn.00415700
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], 0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.00415aff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.00415dd1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x84]
push eax
push ecx
push ebx
push 0
push 0
mov ecx, edi
call fcn.00415efd
mov edx, dword [esi + 0xc8]
mov eax, dword [esp + 0x10]
push 0xcc0020
push 0
push 0
sub eax, edx
mov ecx, ebx
sub ecx, edx
mov edx, dword [esp + 0x3c]
push edx
push eax
mov eax, dword [esi + 0xa8]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esi + 0xc8]
xor edx, edx
cmp ecx, edx
jle 0x405945
mov eax, dword [esp + 0x10]
sub esp, 0x10
mov dword [esp + 0x38], eax
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov edx, ebx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
push ecx
lea eax, [esp + 0x40]
push eax
push edi
mov dword [esp + 0x40], ebx
call fcn.00408690
mov edx, dword [esi + 0xc8]
mov eax, dword [esp + 0x2c]
add esp, 0x1c
sub eax, edx
push eax
push ebx
mov ecx, ebx
sub ecx, edx
push 0
push ecx
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push edi
mov edi, edx
call fcn.00408570
mov ecx, dword [esi + 0xc8]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
sub ebx, ecx
mov eax, edx
push ebx
sub eax, ecx
push eax
push 0
mov ecx, edi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push 0x64
push 0
mov edx, edi
push edx
lea eax, [esp + 0x38]
push eax
lea eax, [esi + 0xa4]
push eax
call fcn.00408410
add esp, 0x14
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405950
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.00415dd1
lea ecx, [esp + 0x2c]
call fcn.00415b68
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00415b7e
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4