Function at 0x460c40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9b4b
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x51a3c4]
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 ebx, ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov dword [ebx + 0x24c], eax
xor eax, eax
mov dword [ebp - 0x640], 0
mov dword [ebx + 0x254], ecx
mov dword [ebx + 0x250], edx
mov dword [ebx + 0x25c], 0x24
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x628], 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 0x460d97
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push 0x4f35d4
call fcn.004c02c1
lea ecx, [ebp - 0x210]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460d14
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x640]
call fcn.00408d10
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460d40
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x628]
call fcn.00408d10
lea ecx, [ebp - 0x610]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460d70
sub ecx, edx
lea eax, [ebp - 0x610]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x628]
call fcn.0040b1d0
jmp 0x460e40
push 0
push 0x51c688
push 0x51d868
push 0
push dword [ecx + 0x27c]
call fcn.004aa04c
add esp, 0x14
cmp dword [eax + 0x200], 8
lea edx, [eax + 0x1ec]
jb 0x460dc4
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460dd0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x640]
call fcn.00408d10
mov eax, dword [ebx + 0x254]
push 0
push 0x51c688
push 0x51d868
push 0
push dword [eax + 0x27c]
call fcn.004aa04c
add esp, 0x14
cmp dword [eax + 0x218], 8
lea edx, [eax + 0x204]
jb 0x460e1f
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460e24
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x628]
call fcn.00408d10
cmp dword [ebp - 0x62c], 8
lea esi, [ebp - 0x640]
jb 0x460e59
mov esi, dword [ebp - 0x640]
test esi, esi
je 0x460eb2
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460e60
sub ecx, edx
lea edi, [ebx + 0x1ec]
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00408d10
cmp dword [ebx + 0x1fc], 0
je 0x460eac
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x460e91
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
movzx eax, word [ecx + eax*2 - 2]
cmp eax, 0x5c
je 0x460eac
cmp eax, 0x2f
je 0x460eac
push 0x5c
mov ecx, edi
call fcn.00408000
mov esi, dword [ebp - 0x640]
cmp dword [ebp - 0x614], 8
lea edi, [ebp - 0x628]
jb 0x460ecb
mov edi, dword [ebp - 0x628]
test edi, edi
je 0x460ef2
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460ed0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebx + 0x204]
call fcn.00408d10
mov edi, dword [ebp - 0x628]
push 7
push str.MenuWnd
lea ecx, [ebx + 0x21c]
call fcn.00408d10
mov dword [ebp - 0x644], ebx
test ebx, ebx
je 0x460f33
mov eax, dword [0x52408c]
cmp eax, dword [0x524090]
je 0x460f26
mov dword [eax], ebx
add dword [0x52408c], 4
jmp 0x460f33
lea ecx, [ebp - 0x644]
push ecx
push eax
call fcn.00462700
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x460f46
mov eax, dword [eax + 0x27c]
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x648], 0
push ecx
push 0x80088
push 0x80000000
push str.UI_MENU_NAME
push eax
mov ecx, ebx
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x654], 0
call fcn.0040cf60
push 4
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x614]
cmp eax, 8
jb 0x460fcd
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x460fc3
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461021
push ecx
push edi
call fcn.004a42a7
add esp, 8
mov eax, dword [ebp - 0x62c]
cmp eax, 8
jb 0x461003
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x460ff9
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461021
push ecx
push esi
call fcn.004a42a7
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.004a44be
mov esp, ebp
pop ebp
ret 0x18
call fcn.004aba7f
int3