Function at 0x4086ef
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6b4
mov eax, dword [0x44465c]
xor eax, esp
mov dword [esp + 0x6b0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x4086e2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00423bbe
mov dword [esp], 0x4086e2
call fcn.00425662
mov dword [esp], 0x4086e2
call fcn.00423866
push 1
call fcn.00425974
pop ecx
pop ecx
push 0x448c58
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4074ad
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push str.seup_process
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402085
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x50]
push eax
mov ecx, 0x446cd4
call fcn.0040266c
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.004020a8
xor eax, eax
push 0x206
mov word [esp + 0x2ac], ax
lea eax, [esp + 0x2ae]
push ebx
push eax
call fcn.00427d80
add esp, 0xc
push 0x104
lea eax, [esp + 0x2ac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea esi, [esp + 0x88]
call fcn.00408296
lea eax, [esp + 0x2a8]
push eax
lea esi, [esp + 0x4c]
call fcn.00408296
push 0x43e170
lea esi, [esp + 0x6c]
call fcn.00408296
push eax
lea eax, [esp + 0x88]
push eax
lea ebx, [esp + 0x50]
call fcn.00417612
pop ecx
pop ecx
push 1
xor edi, edi
call fcn.00402346
push 1
mov esi, ebx
call fcn.00402346
cmp dword [esp + 0x94], 3
ja 0x408858
or ebx, 0xffffffff
push 1
xor edi, edi
lea esi, [esp + 0x88]
call fcn.00402346
mov ecx, dword [esp + 0x6bc]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0042396b
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
push eax
mov word [esp + 0xa8], ax
lea eax, [esp + 0xaa]
push eax
call fcn.00427d80
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [esp + 0xa4]
push eax
push 0
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0xa0]
push eax
call esi
lea eax, [esp + 0xa0]
push eax
call esi
push str.360base.dll
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xa0]
push eax
call fcn.0041564f
push 0x7d0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea esi, [esp + 0x2c]
call fcn.00415c80
mov eax, dword [0x44c908]
mov dword [esp + 0x44], eax
xor esi, esi
lea eax, [esp + 0x14]
mov dword [0x44c908], eax
cmp dword [0x44c90c], esi
jne 0x408904
call fcn.00416387
xor eax, eax
push 0x206
mov word [esp + 0x4b4], ax
lea eax, [esp + 0x4b6]
push esi
push eax
call fcn.00427d80
add esp, 0xc
push ebx
lea eax, [esp + 0x4b4]
push eax
push esi
call edi
test eax, eax
je 0x408966
push 0x8f2
lea ecx, [esp + 0x6c]
call fcn.0040165a
cmp dword [eax + 0x14], 8
pop ecx
jb 0x40894b
mov eax, dword [eax]
mov edx, eax
lea ecx, [esp + 0x4b0]
call fcn.00415999
push 1
xor edi, edi
lea esi, [esp + 0x6c]
call fcn.00402346
mov esi, dword [0x44c90c]
and dword [esp + 0x58], 0
push 7
push str.360seup
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], 0
call fcn.004023f3
lea eax, [esp + 0x48]
push eax
call fcn.004167a9
push 0
push 1
lea ecx, [esp + 0x50]
mov bl, al
call fcn.004020a8
test bl, bl
je 0x4089b5
push dword [esp + 0xc]
call fcn.0040ad46
pop ecx
cmp dword [0x44c908], 0
mov esi, dword [0x44c7d0]
je 0x4089d2
call fcn.00415b8f
mov eax, dword [esp + 0x44]
mov dword [0x44c908], eax
lea eax, [esp + 0x2c]
call fcn.00415d37
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ebx, esi
jmp 0x40882f