Function at 0x41f470
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x41f7e0
mov dword [ebp - 0xc], 1
jmp 0x41f494
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x521620]
jg 0x41f508
push 0xffffffffffffffeb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x513fb0]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
je 0x41f506
push 5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x513fb0]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41f4f5
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x14], eax
jmp 0x41f4d4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x513fb0]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x41f48b
call fcn.00406990
test eax, eax
jne 0x41f7db
mov dword [0x513f74], 1
mov dword [ebp - 0xc], 0
jmp 0x41f531
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x513f68]
jg 0x41f696
mov edx, dword [ebp - 0xc]
cmp dword [edx*4 + 0x514ff0], 0
je 0x41f691
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
je 0x41f691
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x514f20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41f691
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x514f20]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x40000000
jne 0x41f691
push 0xffffffffffffffeb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x514f20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41f5be
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 5
jne 0x41f691
mov eax, dword [ebp - 0xc]
cmp dword [eax*4 + 0x515190], 0
jne 0x41f67a
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x514ff0]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x514ff0]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x18], eax
mov eax, dword [0x5222c8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 0xc]
mov dword [ecx*4 + 0x515190], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x515190]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x514ff0]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x515260]
add edx, 1
mov eax, dword [ebp - 0xc]
mov dword [eax*4 + 0x515260], edx
jmp 0x41f528
mov dword [ebp - 0xc], 1
jmp 0x41f6a8
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x521620]
jg 0x41f7db
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 8], eax
push 0xffffffffffffffeb
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x513fb0]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], 0
je 0x41f7d6
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x513fb0]
push edx
call fcn.00428450
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41f7d6
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x516030], 0
jne 0x41f7bf
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x513fb0]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x513fb0]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x18], eax
mov eax, dword [0x5222c8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 8]
mov dword [ecx*4 + 0x516030], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x516030]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x513fb0]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x5161c8]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x5161c8], edx
jmp 0x41f69f
jmp 0x41fb7e
cmp dword [0x513f74], 0
je 0x41fb7e
mov dword [0x513f74], 0
mov dword [ebp - 0xc], 0
jmp 0x41f809
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x513f68]
jg 0x41fa14
mov eax, dword [ebp - 0xc]
cmp dword [eax*4 + 0x515190], 0
je 0x41fa0f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx]
je 0x41fa0f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x515260]
sub ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx*4 + 0x515260], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax*4 + 0x515260], 0
jne 0x41fa05
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x514ff0]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xfdffffff
push eax
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x514ff0]
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x514ff0]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x514ff0]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x515190]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x514ff0]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x515190]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0xc]
mov dword [ecx*4 + 0x515190], 0
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x514ff0]
push eax
call dword [sym.imp.USER32.dll_ValidateRgn]
mov ecx, dword [ebp - 4]
push ecx
push 0xfffffffffffffff0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x514ff0]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [ebp - 8], 1
jmp 0x41f979
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [0x513f68]
jg 0x41fa03
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x514f20], 0
je 0x41f9fe
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x514f20]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x514ff0]
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x41f9fe
mov dword [ebp - 0x10], 0
jmp 0x41f9c3
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 5
jge 0x41f9fe
mov eax, dword [ebp - 8]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x10]
cmp dword [eax + ecx*4 + 0x514498], 0
je 0x41f9fc
push 0x101
push 0
push 0
mov edx, dword [ebp - 8]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + eax*4 + 0x514498]
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x41f9ba
jmp 0x41f970
jmp 0x41fa0f
mov dword [0x513f74], 1
jmp 0x41f800
mov dword [ebp - 0xc], 1
jmp 0x41fa26
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x521620]
jg 0x41fb7e
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx*4 + 0x516030], 0
je 0x41fb44
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x5161c8]
sub ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx*4 + 0x5161c8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x5161c8], 0
jne 0x41fb38
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x513fb0]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x513fb0]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x516030]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x513fb0]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x516030]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 8]
mov dword [edx*4 + 0x516030], 0
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x513fb0]
push ecx
call dword [sym.imp.USER32.dll_ValidateRgn]
jmp 0x41fb42
mov dword [0x513f74], 1
jmp 0x41fb79
cmp dword [0x522890], 0
je 0x41fb68
cmp dword [0x522a0c], 4
jle 0x41fb68
cmp dword [0x522a0c], 5
jne 0x41fb79
cmp dword [0x5224c0], 0
jne 0x41fb79
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x513fb0]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x41fa1d
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret