Function at 0x4058f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432178
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 0x405941
mov eax, dword [esi + 0xa0]
cmp dword [esi + 0x78], eax
mov dword [esp + 0x10], eax
jg 0x405941
mov dword [esi + 0xc8], 0
jmp 0x405969
cmp ebx, 0x64
mov eax, 0x64
jg 0x40594d
mov eax, ebx
mov ecx, dword [esi + 0xa0]
cmp eax, ecx
mov dword [esi + 0xc8], eax
mov dword [esp + 0x10], ecx
jl 0x405963
mov eax, ecx
mov dword [esi + 0xc8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x405bb7
cmp dword [esi + 0xa8], 0
je 0x40598a
lea ecx, [esi + 0xa4]
call fcn.00415c17
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00415b9a
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.00408200
add esp, 8
test edi, edi
jne 0x4059c3
xor eax, eax
jmp 0x4059c6
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.00415bae
cmp dword [esi + 0xbc], 0
je 0x4059ef
lea ecx, [esi + 0xb8]
call fcn.00415e49
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.00415df1
lea eax, [esi + 0xb8]
test eax, eax
je 0x405a24
mov eax, dword [eax + 4]
mov edx, dword [esi + 0xa8]
push eax
push edx
call fcn.00415e80
lea ecx, [esp + 0x2c]
mov dword [esi + 0xb4], eax
call fcn.004157d1
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.00415bae
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.00415e80
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.00415fac
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 0x405b75
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.00408770
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.00408650
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.004084f0
add esp, 0x14
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405b80
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.00415e80
lea ecx, [esp + 0x2c]
call fcn.00415c17
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.00415c2d
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4