Function at 0x4c6e30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
cmp eax, 0x9c6d
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
jl 0x4c6ee2
cmp eax, 0x9c6f
jg 0x4c6ee2
sub eax, 0x9c6e
je 0x4c6e6f
sub eax, 1
je 0x4c6e68
mov eax, dword [0x58b654]
jmp 0x4c6e74
mov eax, dword [0x58b65c]
jmp 0x4c6e74
mov eax, dword [0x58b658]
test eax, eax
jge 0x4c6e7a
xor eax, eax
mov ecx, dword [0x58eed8]
imul ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [0x58b660]
mov ecx, dword [0x58b664]
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
test eax, eax
je 0x4c6ea7
test ecx, ecx
jne 0x4c6eb1
mov eax, 9
mov ecx, 7
imul eax, edi
cdq
idiv ecx
cmp byte [0x598ec5], 0
mov ebx, eax
je 0x4c6f64
mov ecx, dword [esi + 0x60]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0x1c]
sub edi, dword [esp + 0x14]
jmp 0x4c6f64
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov edi, 0x58c9f0
lea ebp, [esi + 0x228]
cmp dword [ebp + 0x34], 0xffffffff
je 0x4c6f20
mov eax, dword [ebp]
test eax, eax
jne 0x4c6f1e
mov ecx, dword [edi]
imul ecx, dword [0x58eed4]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, eax
add edi, 8
add ebp, 4
cmp edi, 0x58ca58
jl 0x4c6ef7
cmp dword [esi + 0xc4], 0
je 0x4c6f3f
push esi
call fcn.0050fcd0
add ebx, eax
mov ecx, dword [0x58b660]
test ecx, ecx
mov eax, dword [0x58b664]
je 0x4c6f52
test eax, eax
jne 0x4c6f5c
mov ecx, 9
mov eax, 7
imul eax, ebx
cdq
idiv ecx
mov edi, eax
xor ebp, ebp
cmp dword [esi + 0xc4], ebp
je 0x4c6f7f
push esi
call fcn.0050fcd0
mov ecx, ebx
sub ecx, eax
push ecx
push esi
call fcn.0050fca0
mov edx, dword [esi + 0x60]
push 0xffffffffffffffec
mov dword [esp + 0x20], edi
mov edi, dword [0x598dd0]
push edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
call edi
push eax
mov eax, dword [esi + 0x60]
push 1
push 0xfffffffffffffff0
push eax
call edi
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
sub edi, dword [esp + 0x10]
sub ebp, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea eax, [edx + ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x1c]
add eax, edx
cdq
sub eax, edx
mov ebx, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
neg eax
sar ecx, 1
add ecx, eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
sar ebx, 1
neg eax
add ebx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
add ecx, edi
add ebx, ebp
cmp byte [0x58b618], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
je 0x4c703d
mov eax, dword [esi + 0x60]
push eax
call fcn.004af320
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004b0630
cmp dword [esi + 0x2c8], 0
jne 0x4c704f
mov edx, dword [esi + 0x60]
push edx
call fcn.004ada60
mov eax, dword [esi + 0x60]
push eax
call fcn.004adab0
mov ecx, dword [esi + 0x60]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push ecx
call edi
xor eax, eax
cmp dword [esi + 0x2c8], eax
je 0x4c70a4
mov edx, dword [esi + 0x58]
mov dword [esi + 0x2c8], eax
mov eax, dword [esi + 0x60]
push edx
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, dword [esi + 0x60]
push ecx
call fcn.004aca50
mov edx, dword [esi + 0x60]
or eax, 0xc40000
push eax
push 0xfffffffffffffff0
push edx
call dword [0x598e20]
mov eax, 0x20
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
or eax, 0x14
push eax
mov eax, dword [esp + 0x18]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x60]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x60]
push 5
push ecx
call edi
cmp dword [esp + 0x28], 0x9c6c
je 0x4c70ee
push esi
call fcn.004c3020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor edi, edi
lea ebx, [esi + 0x228]
mov eax, dword [ebx]
test eax, eax
push 0
jne 0x4c711d
mov ecx, dword [edi*8 + 0x58c9f0]
imul ecx, dword [0x58eed4]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
push esi
call fcn.004eca30
add edi, 1
add ebx, 4
cmp edi, 0xd
jl 0x4c70f6
push esi
call fcn.004efab0
push esi
call fcn.004ee4e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8