Function at 0x46d1b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c196
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 0x10], eax
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 dword [esi + 0x25c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x260], eax
xor eax, eax
mov dword [esi + 0x264], ecx
mov dword [esi + 0x26c], 0x24
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 0x46d2f7
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push 0x529860
call fcn.004f1e0f
lea ecx, [ebp - 0x210]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d273
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x640]
call fcn.0040d260
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d2a0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x628]
call fcn.0040d260
lea ecx, [ebp - 0x610]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d2d0
sub ecx, edx
lea eax, [ebp - 0x610]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x628]
call fcn.0040eb80
jmp 0x46d3a0
push 0
push 0x560840
push 0x55c3f0
push 0
push dword [ecx + 0x2b4]
call fcn.004de045
add esp, 0x14
cmp dword [eax + 0x210], 8
lea edx, [eax + 0x1fc]
jb 0x46d324
mov edx, dword [edx]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d330
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x640]
call fcn.0040d260
mov eax, dword [esi + 0x264]
push 0
push 0x560840
push 0x55c3f0
push 0
push dword [eax + 0x2b4]
call fcn.004de045
add esp, 0x14
cmp dword [eax + 0x228], 8
lea edx, [eax + 0x214]
jb 0x46d37f
mov edx, dword [edx]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d384
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x628]
call fcn.0040d260
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
mov ecx, esi
cmovae eax, dword [ebp - 0x640]
push eax
call fcn.004136c0
cmp dword [ebp - 0x614], 8
lea edx, [ebp - 0x628]
jb 0x46d3d5
mov edx, dword [ebp - 0x628]
test edx, edx
je 0x46d3fc
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d3e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x214]
call fcn.0040d260
push 7
push 0x5369a0
lea ecx, [esi + 0x22c]
call fcn.0040d260
mov dword [ebp - 0x644], esi
test esi, esi
je 0x46d43d
mov eax, dword [0x566380]
cmp dword [0x566384], eax
je 0x46d430
mov dword [eax], esi
add dword [0x566380], 4
jmp 0x46d43d
lea ecx, [ebp - 0x644]
push ecx
push eax
call fcn.0046ede0
mov eax, dword [esi + 0x264]
test eax, eax
je 0x46d450
mov eax, dword [eax + 0x2b4]
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x648], 0
push ecx
push 0x80088
push SysReAllocString
push str.UI_MENU_NAME
push eax
mov ecx, esi
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x654], 0
call fcn.00410d30
push 4
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x614]
cmp edx, 8
jb 0x46d4e1
mov ecx, dword [ebp - 0x628]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d4d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d557
push edx
push ecx
call fcn.004bcf17
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 0x46d53a
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d530
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d55c
push edx
push ecx
call fcn.004bcf17
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret 0x18
call fcn.004df969
call fcn.004df969
int3