Function at 0x499140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
push eax
push ecx
mov ecx, esi
call fcn.00498b79
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 0x10], edi
jne 0x499175
and dword [esi + 0x188], 0
jmp 0x499315
cmp edi, dword [esi + 0x1a4]
je 0x4992ec
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x499199
push 0
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ax, word [esi + 0x1a8]
test ax, ax
je 0x4991b9
cmp ax, 2
jne 0x4991c1
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 0x18]
jmp 0x4991c7
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
cmp ebx, 0x1c
jle 0x499235
and dword [ebp - 8], 0
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jl 0x4991e2
cmp eax, dword [esi + 0x4c]
jl 0x4991e4
xor eax, eax
lea ecx, [ebp - 8]
lea eax, [eax + eax*4]
push ecx
mov ecx, dword [esi + 0x48]
push 0
push 0x754
mov eax, dword [ecx + eax*4]
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ax, word [esi + 0x1a8]
test ax, ax
je 0x499212
cmp ax, 2
jne 0x499220
add dword [ebp - 8], 4
cmp ebx, dword [ebp - 8]
jge 0x49922c
mov ebx, dword [ebp - 8]
jmp 0x49922c
add dword [ebp - 4], 4
cmp ebx, dword [ebp - 4]
jge 0x49922c
mov ebx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x19c], ebx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x1a8]
pop ebx
test eax, eax
jne 0x49925e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
add eax, dword [esi + 0x19c]
mov dword [ebp - 0x10], eax
jmp 0x49929e
cmp eax, 3
jne 0x499274
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
sub eax, dword [esi + 0x19c]
mov dword [ebp - 0x14], eax
jmp 0x49929e
cmp eax, 2
jne 0x49928a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
sub eax, dword [esi + 0x19c]
mov dword [ebp - 0x18], eax
jmp 0x49929e
cmp eax, 1
jne 0x49929e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
add eax, dword [esi + 0x19c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push 1
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_MoveWindow]
test edi, edi
mov eax, edi
jl 0x4992c8
cmp edi, dword [esi + 0x4c]
jl 0x4992ca
xor eax, eax
mov ecx, dword [esi + 0x48]
lea eax, [eax + eax*4]
push dword [ecx + eax*4]
push dword [esi + 0x2c]
push 0x720
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0x1a4], edi
jmp 0x499315
test edi, edi
mov dword [esi + 0x188], 1
mov eax, edi
jl 0x499301
cmp edi, dword [esi + 0x4c]
jl 0x499303
xor eax, eax
mov ecx, dword [esi + 0x48]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
xor eax, eax
pop esi
leave
ret 0x10