Function at 0x492410
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.005366c0
mov esi, eax
test esi, esi
je 0x492677
test bl, 0x10
je 0x492447
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, eax
call fcn.00536930
cmp eax, edi
je 0x492677
call fcn.0050b730
mov ecx, dword [esi]
mov edi, eax
mov dword [esp + 0x14], edi
call fcn.00536a40
test eax, eax
jne 0x4924f9
test bl, 2
je 0x49246a
push 3
jmp 0x492480
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x49247e
mov edx, dword [esi]
push 4
push edx
jmp 0x492483
push 8
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test bl, 4
jne 0x4924db
test bl, 1
jne 0x49249c
mov eax, dword [0x5a1b08]
test eax, eax
je 0x4924db
test edi, edi
je 0x4924b7
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 0x4924db
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.005386c0
call fcn.00491b80
call fcn.005387a0
pop edi
pop esi
xor ecx, ecx
pop ebx
add esp, 0xc
jmp fcn.0051c6d0
mov eax, dword [0x5a1b04]
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 0x49253c
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x49253c
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49253c
push edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x492542
mov ebp, 1
jmp 0x492542
mov ebp, dword [esi + 0x768]
mov al, byte [esp + 0x10]
test al, 2
je 0x49254f
mov ebp, 1
test al, 8
jne 0x492588
test ebp, ebp
je 0x492588
mov ecx, dword [0x5a1b04]
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 0x4925bf
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4925a2
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4925a7
mov ebx, 1
mov eax, dword [esi]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
je 0x4925bf
mov ecx, dword [esi]
xor edx, edx
call fcn.004c99b0
mov eax, dword [esp + 0x10]
test al, 4
pop ebp
jne 0x492638
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4925e7
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 0x492638
mov edi, eax
and edi, 1
jne 0x4925f7
mov eax, dword [0x5a1b08]
test eax, eax
je 0x4925fe
xor ecx, ecx
call fcn.0052bac0
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 0x49261d
mov eax, dword [0x5a1b08]
test eax, eax
je 0x492626
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.005386c0
call fcn.00491b80
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4924e7
mov ecx, dword [0x5a1b04]
push 0
push 1
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00491bf0
pop edi
pop esi
xor ecx, ecx
pop ebx
add esp, 0xc
jmp fcn.0051c6d0
pop edi
pop esi
pop ebx
add esp, 0xc
ret