Function at 0x46c550
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4f4c63
call fcn.004ebd20
sub esp, 0x30
push esi
push edi
xor edi, edi
cmp dword [0x522c14], edi
mov esi, ecx
jne 0x46c5c7
cmp esi, edi
je 0x46c5c7
push 0x81cd
lea eax, [ebp - 0x18]
call fcn.00401692
mov eax, dword [eax]
pop ecx
push 0x24
push dword [0x52324c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
mov eax, dword [ebp - 0x18]
setne byte [ebp - 0xd]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x46c5ac
push eax
call fcn.004013b2
cmp byte [ebp - 0xd], 0
je 0x46c5bd
mov dword [0x522b68], edi
jmp 0x46c8e8
mov dword [0x522c14], 1
cmp dword [0x522c18], edi
jne 0x46c5da
cmp esi, edi
mov dword [ebp - 0x18], 1
jne 0x46c5dd
mov dword [ebp - 0x18], edi
push 0xb
push edi
lea eax, [ebx + 0x504]
push 0xffffffffffffffff
push eax
call fcn.0041a3df
xor eax, eax
cmp dword [0x522418], edi
jle 0x46c61c
cmp eax, dword [0x522418]
jae 0x46c870
mov ecx, dword [0x522414]
lea ecx, [ecx + eax*4]
mov ecx, dword [ecx]
or dword [ecx + 0x20], 0xffffffff
inc eax
cmp eax, dword [0x522418]
jl 0x46c5fe
lea ecx, [ebx + 0x254]
lea eax, [ebp - 0x14]
mov dword [0x522b68], esi
call fcn.0047757b
neg esi
sbb esi, esi
and esi, 8
push esi
push 0x7f4c
mov dword [ebp - 4], edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x522b68]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
neg eax
sbb eax, eax
and eax, 4
push eax
push dword [ebx + 0x4a4]
call esi
mov eax, dword [0x522b68]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push eax
lea edi, [ebx + 0x4c8]
push dword [edi]
call esi
cmp dword [0x522b68], 0
je 0x46c69d
lea ecx, [ebx + 0x4a0]
neg ecx
sbb ecx, ecx
lea eax, [ebx + 0x4a4]
and ecx, eax
mov ecx, dword [ecx]
jmp 0x46c6ab
lea eax, [ebx + 0x4c4]
neg eax
sbb eax, eax
and eax, edi
mov ecx, dword [eax]
lea edx, [ebx + 0x500]
neg edx
sbb edx, edx
lea eax, [ebx + 0x504]
and edx, eax
mov eax, dword [edx]
lea esi, [ebx + 0x43c]
mov dword [esi], ecx
mov dword [esi + 4], eax
call fcn.004789a1
cmp dword [0x522b68], 0
je 0x46c8b9
lea esi, [ebp - 0x2c]
lea edi, [ebx + 0x4a4]
call fcn.00477689
xor esi, esi
cmp dword [ebp - 0x2c], esi
jne 0x46c8a3
mov eax, dword [0x51b438]
mov dword [ebp - 0x14], eax
push 0x81cc
push dword [0x522618]
lea eax, [ebp - 0x14]
push eax
call fcn.0040386d
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
push 0x7c
push 7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.004aed45
add esp, 0x10
cmp dword [ebp - 0x38], esi
jbe 0x46c870
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
push 0xffff0002
push 1
push esi
push eax
mov eax, 0xffff0000
lea ecx, [ebp - 0x24]
mov edx, ebx
call fcn.0046de6b
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ecx
push 2
push 0x1102
push dword [eax]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], esi
je 0x46c85d
push 1
push 0xf
push 0xf
push esi
call fcn.004af6bf
mov eax, dword [0x522418]
add esp, 0x10
xor edi, edi
cmp eax, esi
mov dword [ebp - 0x1c], eax
jle 0x46c821
cmp edi, dword [0x522418]
jae 0x46c870
mov eax, dword [0x522414]
lea eax, [eax + edi*4]
mov esi, dword [eax]
test esi, esi
mov dword [ebp - 0x20], esi
je 0x46c7c7
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, esi
mov byte [ebp - 4], 3
je 0x46c804
cmp dword [esi + 0x2c], 0
jne 0x46c804
lea eax, [ebp - 0x18]
mov ecx, esi
call fcn.0043f188
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov ecx, esi
call fcn.00461216
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x46c804
push eax
call fcn.004013b2
push 1
push esi
call fcn.004607d8
test esi, esi
mov byte [ebp - 4], 2
je 0x46c819
call fcn.0043f167
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x46c7a0
xor esi, esi
push 0x522500
lea edi, [ebp - 0x1c]
call fcn.0049cb33
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x1c]
cmp edi, esi
je 0x46c842
push esi
push ebx
mov ecx, edi
call fcn.0046cfda
cmp edi, esi
mov dword [0x522c18], 1
mov byte [ebp - 4], 2
je 0x46c85d
mov esi, edi
call fcn.0043f167
xor esi, esi
mov eax, dword [0x522c1c]
cmp dword [eax - 8], esi
je 0x46c87a
mov ecx, ebx
call fcn.0046dec5
jmp 0x46c885
push 0x80070057
call fcn.004010d2
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0047770f
lea esi, [ebp - 0x3c]
call fcn.0045d68c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x46c8e8
push eax
call fcn.004013b2
jmp 0x46c8e8
push esi
push 0x7fee
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x46c8e8
mov ecx, dword [0x522718]
test ecx, ecx
jl 0x46c8cb
cmp ecx, dword [0x522418]
jl 0x46c8cd
xor ecx, ecx
mov edx, ebx
call fcn.0046c07e
test eax, eax
je 0x46c8e8
mov edi, ebx
call fcn.0046ca0b
mov ecx, dword [ebx + 0xf0]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret