Function at 0x40548f
Capabilities:
Capture screenshot
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41a00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov al, byte [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x28], edi
mov byte [edi + 0x354], al
test al, al
je 0x40564d
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [edi + 0x16c]
call ebx
cmp dword [edi + 0x34c], esi
jne 0x405630
cmp dword [edi + 0x344], esi
jne 0x405630
push esi
push dword [edi + 0xd8]
call ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0x34c], eax
test eax, eax
je 0x40561a
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [edi + 0x344], eax
test eax, eax
je 0x405693
push eax
push dword [edi + 0x34c]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov dword [edi + 0x348], eax
xor eax, eax
push eax
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push eax
push dword [edi + 0x34c]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x40561a
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov edx, dword [edi + 0x344]
push ecx
mov ecx, dword [edi + 0x34c]
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
call fcn.004058c7
add esp, 0xc
xor eax, eax
push 0xcc0020
push eax
push eax
push dword [edi + 0x34c]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
xor esi, esi
push esi
push dword [edi + 0x1e8]
call ebx
push esi
push dword [edi + 0x26c]
call ebx
push esi
push dword [edi + 0x2c]
call ebx
push esi
push dword [edi + 0x7c]
call ebx
mov eax, dword [edi + 0x35c]
xor edx, edx
mov esi, dword [edi + 0x358]
mov ecx, eax
and dword [ebp - 0x20], 0
sub ecx, esi
add ecx, 3
shr ecx, 2
cmp esi, eax
cmova ecx, edx
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x405617
mov edi, dword [ebp - 0x20]
mov eax, dword [esi]
push 0
push dword [eax + 0x14]
call ebx
inc edi
lea esi, [esi + 4]
cmp edi, dword [ebp - 0x24]
jne 0x405602
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1c]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 1
push dword [edi + 0xd8]
call ebx
xor esi, esi
cmp dword [edi + 0x340], esi
jne 0x40564d
push esi
push 1
push dword [edi + 4]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x340], eax
movzx eax, byte [edi + 0x354]
lea ecx, [edi + 0x2a8]
push eax
call fcn.004023e4
movzx eax, byte [edi + 0x354]
lea ecx, [edi + 0x2f8]
push eax
call fcn.004023e4
push 3
push esi
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e40
mov esp, ebp
pop ebp
ret 4
push dword [edi + 0x34c]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [edi + 0x34c], 0
jmp 0x40561a