Function at 0x417790
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4b5a38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x4177c4
lea edi, [esi - 0x20]
jmp 0x4177c6
xor edi, edi
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4179cc
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4179cc
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push edx
push eax
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00417310
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push eax
push ecx
push ebp
mov byte [esp + 0x48], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push edi
mov dword [esp + 0x20], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.00417370
cmp dword [esi + 0xac], ebx
je 0x4178c8
mov eax, 0x14
cmp dword [esi + 0xc8], eax
jne 0x4178a8
push 2
push ebx
lea ecx, [esp + 0x1c]
push ecx
jmp 0x4178c1
cmp dword [esi + 0xc4], eax
jne 0x4178ba
push 1
push ebx
lea edx, [esp + 0x1c]
push edx
jmp 0x4178c1
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004176e0
cmp dword [esi + 0xb8], ebx
je 0x417944
cmp dword [esi + 0xbc], ebx
mov eax, 9
je 0x41790f
cmp dword [esi + 0xc8], eax
jne 0x4178f0
push 2
push 3
lea ecx, [esp + 0x1c]
push ecx
jmp 0x41793d
cmp dword [esi + 0xc4], eax
mov ecx, esi
jne 0x417905
push 1
push 3
lea edx, [esp + 0x1c]
push edx
jmp 0x41793f
push ebx
push 3
lea eax, [esp + 0x1c]
push eax
jmp 0x41793f
cmp dword [esi + 0xc8], eax
jne 0x417922
push 2
push 1
lea ecx, [esp + 0x1c]
push ecx
jmp 0x41793d
cmp dword [esi + 0xc4], eax
jne 0x417935
push 1
push 1
lea edx, [esp + 0x1c]
push edx
jmp 0x41793d
push ebx
push 1
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004176e0
cmp dword [esi + 0xb4], ebx
je 0x417986
mov eax, 8
cmp dword [esi + 0xc8], eax
jne 0x417964
push 2
push 2
lea ecx, [esp + 0x1c]
push ecx
jmp 0x41797f
cmp dword [esi + 0xc4], eax
jne 0x417977
push 1
push 2
lea edx, [esp + 0x1c]
push edx
jmp 0x41797f
push ebx
push 2
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004176e0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push 0xcc0020
push ebx
push ebx
push esi
push 0x1a
push ecx
push ebx
push ebx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebp, ebx
je 0x4179b5
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, ebx
je 0x4179c0
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x20]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4