Function at 0x46c0db
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4f3c9d
call fcn.004eadec
sub esp, 0x30
push esi
push edi
xor edi, edi
cmp dword [0x521c14], edi
mov esi, ecx
jne 0x46c152
cmp esi, edi
je 0x46c152
push 0x81cd
lea eax, [ebp - 0x18]
call fcn.004017db
mov eax, dword [eax]
pop ecx
push 0x24
push dword [0x52224c]
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 [0x51a43c]
je 0x46c137
push eax
call fcn.004013aa
cmp byte [ebp - 0xd], 0
je 0x46c148
mov dword [0x521b68], edi
jmp 0x46c473
mov dword [0x521c14], 1
cmp dword [0x521c18], edi
jne 0x46c165
cmp esi, edi
mov dword [ebp - 0x18], 1
jne 0x46c168
mov dword [ebp - 0x18], edi
push 0xb
push edi
lea eax, [ebx + 0x504]
push 0xffffffffffffffff
push eax
call fcn.0041a93a
xor eax, eax
cmp dword [0x521418], edi
jle 0x46c1a7
cmp eax, dword [0x521418]
jae 0x46c3fb
mov ecx, dword [0x521414]
lea ecx, [ecx + eax*4]
mov ecx, dword [ecx]
or dword [ecx + 0x20], 0xffffffff
inc eax
cmp eax, dword [0x521418]
jl 0x46c189
lea ecx, [ebx + 0x254]
lea eax, [ebp - 0x14]
mov dword [0x521b68], esi
call fcn.004771ab
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 [0x521b68]
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 [0x521b68]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push eax
lea edi, [ebx + 0x4c8]
push dword [edi]
call esi
cmp dword [0x521b68], 0
je 0x46c228
lea ecx, [ebx + 0x4a0]
neg ecx
sbb ecx, ecx
lea eax, [ebx + 0x4a4]
and ecx, eax
mov ecx, dword [ecx]
jmp 0x46c236
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.0047842c
cmp dword [0x521b68], 0
je 0x46c444
lea esi, [ebp - 0x2c]
lea edi, [ebx + 0x4a4]
call fcn.004772b9
xor esi, esi
cmp dword [ebp - 0x2c], esi
jne 0x46c42e
mov eax, dword [0x51a438]
mov dword [ebp - 0x14], eax
push 0x81cc
push dword [0x521618]
lea eax, [ebp - 0x14]
push eax
call fcn.00403988
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.004ae763
add esp, 0x10
cmp dword [ebp - 0x38], esi
jbe 0x46c3fb
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.0046d9a3
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 0x46c3e8
push 1
push 0xf
push 0xf
push esi
call fcn.004af0e0
mov eax, dword [0x521418]
add esp, 0x10
xor edi, edi
cmp eax, esi
mov dword [ebp - 0x1c], eax
jle 0x46c3ac
cmp edi, dword [0x521418]
jae 0x46c3fb
mov eax, dword [0x521414]
lea eax, [eax + edi*4]
mov esi, dword [eax]
test esi, esi
mov dword [ebp - 0x20], esi
je 0x46c352
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, esi
mov byte [ebp - 4], 3
je 0x46c38f
cmp dword [esi + 0x2c], 0
jne 0x46c38f
lea eax, [ebp - 0x18]
mov ecx, esi
call fcn.0043f5e2
mov byte [ebp - 4], 4
push dword [eax]
mov ecx, esi
call fcn.00461259
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46c38f
push eax
call fcn.004013aa
push 1
push esi
call fcn.004608bf
test esi, esi
mov byte [ebp - 4], 2
je 0x46c3a4
call fcn.0043f5c1
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x46c32b
xor esi, esi
push 0x521500
lea edi, [ebp - 0x1c]
call fcn.0049c604
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x1c]
cmp edi, esi
je 0x46c3cd
push esi
push ebx
mov ecx, edi
call fcn.0046cb62
cmp edi, esi
mov dword [0x521c18], 1
mov byte [ebp - 4], 2
je 0x46c3e8
mov esi, edi
call fcn.0043f5c1
xor esi, esi
mov eax, dword [0x521c1c]
cmp dword [eax - 8], esi
je 0x46c405
mov ecx, ebx
call fcn.0046d9fd
jmp 0x46c410
push 0x80070057
call fcn.004010ca
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0047733f
lea esi, [ebp - 0x3c]
call fcn.0045d5de
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46c473
push eax
call fcn.004013aa
jmp 0x46c473
push esi
push 0x7fee
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x46c473
mov ecx, dword [0x521718]
test ecx, ecx
jl 0x46c456
cmp ecx, dword [0x521418]
jl 0x46c458
xor ecx, ecx
mov edx, ebx
call fcn.0046bc0a
test eax, eax
je 0x46c473
mov edi, ebx
call fcn.0046c596
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