Function at 0x487e41
Capabilities:
Hide graphical window

Disassembly:
push 0x44
mov eax, 0x54e3ac
call fcn.00513e6d
mov edi, ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 4
push dword [edi + 4]
mov dword [ebp - 4], ecx
call esi
mov ebx, eax
xor eax, eax
inc eax
mov dword [ebp - 0x28], ebx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebp - 0x50], 0
lea edi, [ebp - 0x4c]
push 6
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x487ebd
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.004885af
push 4
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x487ea3
xor eax, eax
xor esi, esi
inc eax
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x50]
mov edi, esi
push eax
mov ebx, esi
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x48813e
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 4]
je 0x487f1f
jmp 0x487ef4
cmp eax, dword [esi + 4]
je 0x487f19
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x487eef
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
sub esi, eax
sar esi, 2
test esi, esi
je 0x4880d6
mov edi, eax
mov eax, dword [ebp - 0x50]
jmp 0x487f4a
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 4]
mov eax, dword [ebp - 0x4c]
jne 0x4880ef
cmp eax, 0x10
jne 0x4880ef
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
jmp 0x488128
cmp eax, dword [edi]
je 0x4880c9
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x487f42
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x50]
cmp eax, dword [edi]
push 1
pop edx
cmove ebx, edx
add edi, 4
sub esi, edx
jne 0x487f4a
test ecx, ecx
jne 0x487f76
test ebx, ebx
je 0x4880d6
mov eax, dword [ebp - 0x4c]
cmp eax, 0x201
je 0x487fce
cmp eax, 0x204
je 0x487fce
cmp eax, 0xa1
je 0x487fce
cmp eax, 0xa4
je 0x487fce
cmp eax, 0x207
je 0x487fce
cmp eax, 0xa7
je 0x487fce
cmp eax, 0x10
je 0x487fce
cmp eax, 0x112
jne 0x487fd9
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf060
je 0x487fce
cmp ecx, 0xf020
je 0x487fce
cmp ecx, 0xf120
jne 0x4880b2
mov ecx, dword [ebp - 0x18]
call fcn.0048822c
mov eax, dword [ebp - 0x4c]
cmp eax, 0x2a1
je 0x4880c2
cmp eax, 0x2a3
je 0x4880c2
cmp eax, 0x200
je 0x4880c2
cmp eax, 0x20a
je 0x4880c2
cmp eax, 0x207
je 0x4880c2
cmp eax, 0x100
je 0x4880c2
cmp eax, 0x101
je 0x4880c2
cmp eax, 0x201
je 0x4880c2
cmp eax, 0x203
je 0x4880c2
cmp eax, 0x202
je 0x4880c2
cmp eax, 0x204
je 0x4880c2
cmp eax, 0x20
je 0x4880c2
cmp eax, 0xa0
je 0x4880c2
cmp eax, 0xa1
je 0x4880c2
cmp eax, 0xa2
je 0x4880c2
cmp eax, 0xa3
je 0x4880c2
cmp eax, 0xa4
je 0x4880c2
cmp eax, 0xa5
je 0x4880c2
cmp eax, 0xa6
je 0x4880c2
cmp eax, 0xa7
je 0x4880c2
cmp eax, 0xa8
je 0x4880c2
cmp eax, 0xa9
je 0x4880c2
cmp eax, 0x2a2
je 0x4880c2
cmp eax, 0x2a0
je 0x4880c2
cmp eax, 0x10
je 0x4880c2
cmp eax, 0x112
jne 0x488114
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf060
je 0x4880c2
cmp ecx, 0xf020
jne 0x488128
xor ecx, ecx
inc ecx
mov edi, ecx
jmp 0x48811a
xor eax, eax
lea ecx, [eax + 1]
mov dword [ebp - 0x10], ecx
jmp 0x487f58
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x487ebd
cmp eax, 0x112
jne 0x488117
cmp dword [ebp - 0x48], 0xf060
jne 0x488128
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, esi
call fcn.0048822c
mov eax, dword [ebp - 0x4c]
jmp 0x488117
mov edi, dword [ebp - 0x24]
xor ecx, ecx
inc ecx
cmp eax, 0x12
jne 0x488124
mov dword [ebp - 0x20], ecx
mov edi, ecx
test edi, edi
jne 0x488154
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x48814e
push 0x4ff
push 0xa
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp dword [ebp - 0x1c], 0
jne 0x488162
cmp dword [ebp - 0x20], 0
je 0x487ebd
or dword [ebp - 0x14], 0xffffffff
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetFocus]
lea ecx, [ebp - 0x34]
call fcn.004cd4a8
mov eax, dword [ebp - 0x14]
call fcn.00513e36
ret