Function at 0x419880
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [esi + 4]
xor eax, eax
push ebx
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.USER32.dll_SetRect]
lea edx, [eax + 0x13]
push edx
lea edx, [ecx - 3]
push edx
push eax
add ecx, 0xffffffdd
push ecx
lea ebx, [esi + 0x138]
push ebx
call edi
cmp byte [esi + 0x1ac], 0
je 0x4198e7
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebx]
lea ecx, [eax + 0x13]
push ecx
push ebx
push eax
add ebx, 0xffffffe1
push ebx
lea edx, [esi + 0x128]
push edx
call edi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + 0x19]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [esi + 0x118]
push ecx
call edi
mov eax, dword [esi + 0x1a8]
and eax, 0xf
jne 0x4199c8
mov edx, dword [esi + 0x1a0]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
call ebx
mov eax, dword [esi + 0x1a4]
push 0
push eax
call ebx
mov edx, dword [esi + 0x1a0]
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x14]
push eax
push ecx
call ebx
test eax, eax
je 0x419968
mov eax, dword [esi + 4]
lea edx, [ebp - 0xc]
push edx
push eax
call ebx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
sub ecx, eax
sub eax, dword [ebp - 0x10]
lea ecx, [ecx + edx - 0xa]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
sub edx, ecx
sub ecx, dword [ebp - 0x14]
lea edx, [edx + ebx - 0xa]
mov ebx, dword [ebp - 4]
add eax, ebx
push eax
add ecx, edx
push ecx
push ebx
push edx
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 1
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x1a0]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x419abc
cmp eax, 1
jne 0x419abc
mov ecx, dword [esi + 0x1a0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
call edi
mov edx, dword [esi + 0x1a4]
push 5
push edx
call edi
mov ecx, dword [esi + 0x1a4]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [ebp - 0x14]
push edx
push eax
call edi
test eax, eax
je 0x419a2a
mov edx, dword [esi + 4]
lea ecx, [ebp - 0xc]
push ecx
push edx
call edi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
sub ecx, eax
sub eax, dword [ebp - 0x10]
lea edx, [ecx + edx - 0xa]
mov ecx, dword [ebp - 0xc]
sub edi, ecx
sub ecx, dword [ebp - 0x14]
lea edi, [edi + ebx - 0xa]
add eax, edx
push eax
add ecx, edi
push ecx
push edx
push edi
mov edi, dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
push 1
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x1a4]
push ecx
push eax
call ebx
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
push 0
sub ecx, 0xa
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 1
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x1a0]
push ecx
push eax
call ebx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x124]
add ecx, 0xffffffce
push ecx
mov ecx, dword [ebp - 0x24]
push edx
add eax, 0xa
push eax
lea ebx, [esi + 0x148]
push ecx
push ebx
mov dword [ebp - 4], ebx
call edi
test byte [esi + 0x1a8], 0xf0
je 0x419b4f
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 0x124]
lea ecx, [esi + 0x158]
add edx, 0x1e
add eax, 0xa
test ecx, ecx
je 0x419b44
mov dword [ecx], edx
add edx, 0x28
mov dword [ecx + 4], eax
add eax, 0x28
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
test ecx, ecx
je 0x419b44
mov ebx, eax
mov eax, dword [esi + 0x154]
add eax, dword [esi + 0x14c]
sub ebx, dword [ecx + 4]
cdq
sub eax, edx
mov edi, eax
mov eax, ebx
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov dword [ecx + 4], edi
add edi, ebx
mov ebx, dword [ebp - 4]
mov dword [ecx + 0xc], edi
mov edx, dword [esi + 0x160]
add edx, 0xa
mov dword [ebx], edx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret