Function at 0x4a77d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f7f6
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x25c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x260], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x26c], eax
xor eax, eax
mov dword [esi + 0x264], ecx
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x614], 7
mov word [ebp - 0x628], ax
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x4a7917
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push edx
call fcn.00523b42
lea ecx, [ebp - 0x210]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7895
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x640]
call fcn.00403190
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a78c0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x628]
call fcn.00403190
lea ecx, [ebp - 0x610]
lea edx, [ecx + 2]
jmp 0x4a78f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a78f0
sub ecx, edx
lea eax, [ebp - 0x610]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x628]
call fcn.00441364
jmp 0x4a79af
push 0
push 0x59554c
push 0x5904c0
push 0
add ecx, 4
call fcn.00476860
push eax
call fcn.0050e825
add esp, 0x14
mov ecx, eax
call fcn.0044b590
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7944
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x640]
call fcn.00403190
mov ecx, dword [esi + 0x264]
push 0
push 0x59554c
push 0x5904c0
push 0
add ecx, 4
call fcn.00476860
push eax
call fcn.0050e825
add esp, 0x14
mov ecx, eax
call fcn.0044b5b0
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7993
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x628]
call fcn.00403190
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
jb 0x4a79c4
mov eax, dword [ebp - 0x640]
push eax
mov ecx, esi
call fcn.0044dd10
cmp dword [ebp - 0x614], 8
lea eax, [ebp - 0x628]
jb 0x4a79e1
mov eax, dword [ebp - 0x628]
push eax
mov ecx, esi
call fcn.0044de90
push str.MenuWnd
mov ecx, esi
call fcn.0044daf0
mov dword [ebp - 0x654], esi
test esi, esi
je 0x4a7a29
mov eax, dword [0x59a91c]
cmp dword [0x59a920], eax
je 0x4a7a17
mov dword [eax], esi
add dword [0x59a91c], 4
jmp 0x4a7a29
lea ecx, [ebp - 0x654]
push ecx
push eax
mov ecx, 0x59a918
call fcn.00449230
mov ecx, dword [esi + 0x264]
test ecx, ecx
je 0x4a7a44
add ecx, 4
call fcn.00476860
mov ecx, eax
call fcn.0044b430
mov ebx, eax
lea eax, [ebp - 0x650]
mov dword [ebp - 0x644], 0
push eax
push 0x80088
push SysReAllocStringLen
push str.UI_MENU_NAME
push ebx
mov ecx, esi
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x650], 0
call fcn.0044afe0
push 4
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x614]
cmp edx, 8
jb 0x4a7ad5
mov ecx, dword [ebp - 0x628]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a7acb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7b4c
push edx
push ecx
call fcn.004ed797
add esp, 8
mov edx, dword [ebp - 0x62c]
xor eax, eax
mov dword [ebp - 0x618], 0
mov dword [ebp - 0x614], 7
mov word [ebp - 0x628], ax
cmp edx, 8
jb 0x4a7b2e
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a7b24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7b51
push edx
push ecx
call fcn.004ed797
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret 0x18
call fcn.0051042e
call fcn.0051042e
int3