Function at 0x4973e0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xc
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
call fcn.00542c90
mov esi, eax
test esi, esi
je 0x497647
test bl, 0x10
je 0x497417
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, eax
call fcn.00542f00
cmp eax, edi
je 0x497647
call fcn.00513040
mov ecx, dword [esi]
mov edi, eax
mov dword [esp + 0x14], edi
call fcn.00543010
test eax, eax
jne 0x4974c9
test bl, 2
je 0x49743a
push 3
jmp 0x497450
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x49744e
mov edx, dword [esi]
push 4
push edx
jmp 0x497453
push 8
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test bl, 4
jne 0x4974ab
test bl, 1
jne 0x49746c
mov eax, dword [0x5b431c]
test eax, eax
je 0x4974ab
test edi, edi
je 0x497487
mov ecx, dword [esi]
push 0x33
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4974ab
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi]
call fcn.00544c90
call fcn.00496a90
call fcn.00544d70
pop edi
pop esi
xor ecx, ecx
pop ebx
add esp, 0xc
jmp fcn.00527d80
mov eax, dword [0x5b4318]
push ebp
xor ebx, ebx
push eax
xor ebp, ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
test edi, edi
je 0x49750c
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x49750c
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49750c
push edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x497512
mov ebp, 1
jmp 0x497512
mov ebp, dword [esi + 0x770]
mov al, byte [esp + 0x10]
test al, 2
je 0x49751f
mov ebp, 1
test al, 8
jne 0x497558
test ebp, ebp
je 0x497558
mov ecx, dword [0x5b4318]
push 0
push 0
push 0xb
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push edx
call edi
mov eax, dword [esi]
push 3
push eax
call edi
jmp 0x49758f
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x497572
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x497577
mov ebx, 1
mov eax, dword [esi]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
je 0x49758f
mov ecx, dword [esi]
xor edx, edx
call fcn.004cfb30
mov eax, dword [esp + 0x10]
test al, 4
pop ebp
jne 0x497608
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4975b7
mov ecx, dword [esi]
push 0x33
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x497608
mov edi, eax
and edi, 1
jne 0x4975c7
mov eax, dword [0x5b431c]
test eax, eax
je 0x4975ce
xor ecx, ecx
call fcn.00538190
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
test edi, edi
jne 0x4975ed
mov eax, dword [0x5b431c]
test eax, eax
je 0x4975f6
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi]
call fcn.00544c90
call fcn.00496a90
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4974b7
mov ecx, dword [0x5b4318]
push 0
push 1
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00496b00
pop edi
pop esi
xor ecx, ecx
pop ebx
add esp, 0xc
jmp fcn.00527d80
pop edi
pop esi
pop ebx
add esp, 0xc
ret