Function at 0x404aa0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4231f0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x430]
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.00402120
mov eax, dword [esp + 0xd8]
xor ebx, ebx
mov esi, 0xf
mov ebp, 0x10
add esp, 8
lea ecx, [esp + 0x150]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
mov dword [esp + method.CVarList.virtual_0], vtable.CVarList.0
mov dword [esp + 0x210], ecx
mov dword [esp + 0x214], 8
mov dword [esp + 0x218], ebx
mov dword [esp + 0x21c], ebx
mov dword [esp + 0xe8], edi
cmp dword [esp + 0xe4], ebp
jae 0x404b75
lea eax, [esp + 0xd0]
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004021c0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xf8]
call fcn.00401f20
cmp dword [esp + 0x28], ebp
jb 0x404ba6
mov eax, dword [esp + 0x14]
push eax
call fcn.0040582f
add esp, 4
mov eax, dword [esp + 0xf0]
cmp dword [esp + 0x104], ebp
jae 0x404bbd
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004023a0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x114]
call fcn.00401f20
cmp dword [esp + 0x28], ebp
jb 0x404bee
mov edx, dword [esp + 0x14]
push edx
call fcn.0040582f
add esp, 4
mov byte [esp + 0x140], bl
cmp dword [esp + 0x11c], ebx
jne 0x404ca4
lea eax, [esp + 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x220]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
jmp 0x404c30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c30
sub eax, edx
push eax
lea ecx, [esp + 0x224]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402000
push 0x41c5a4
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004049e0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x114]
call fcn.00401f20
cmp dword [esp + 0x28], ebp
jb 0x404c85
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040582f
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x48], ebp
jb 0x404ca4
mov edx, dword [esp + 0x34]
push edx
call fcn.0040582f
add esp, 4
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0xe4], ebp
jae 0x404cbb
lea eax, [esp + 0xd0]
push 0x20
lea ecx, [esp + 0x50]
push ecx
push 0x104
lea edx, [esp + 0x330]
push edx
push eax
call fcn.00401b50
add esp, 0x14
mov edi, eax
mov eax, dword [esp + 0xf0]
cmp dword [esp + 0x104], ebp
jae 0x404cf1
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004022f0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x130]
call fcn.00401f20
cmp dword [esp + 0x28], ebp
jb 0x404d22
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040582f
add esp, 4
cmp dword [esp + 0x138], ebx
jne 0x404d3e
push 0xc
push str.NsClient.ini
lea ecx, [esp + 0x12c]
call fcn.00402000
cmp edi, 1
jbe 0x404d67
mov edx, dword [esp + 0x50]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404d50
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x12c]
call fcn.00402000
cmp edi, 2
jbe 0x404db0
mov esi, 2
cmp edi, esi
jbe 0x404db0
mov edx, dword [esp + esi*4 + 0x4c]
push str._showsplash
push edx
call fcn.0041417a
add esp, 8
test eax, eax
jne 0x404d93
mov byte [esp + 0x140], 1
mov eax, dword [esp + esi*4 + 0x4c]
mov edx, dword [esp + 0x148]
push eax
mov eax, dword [edx + 0x30]
lea ecx, [esp + 0x14c]
call eax
inc esi
cmp esi, edi
jb 0x404d75
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x42475c], eax
call esi
mov dword [0x424760], eax
cmp byte [esp + 0x140], bl
je 0x404e0a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00404900
lea edx, [esp + 0xec]
push edx
call fcn.00404560
add esp, 8
mov bl, al
call fcn.00404610
test bl, bl
je 0x404e1a
mov eax, dword [0x424760]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x404e1a
lea ecx, [esp + 0xe8]
push ecx
call fcn.00404540
add esp, 4
lea ecx, [esp + 0xe8]
call fcn.00404940
cmp dword [esp + 0xe4], ebp
pop edi
pop esi
pop ebp
pop ebx
jb 0x404e43
mov edx, dword [esp + 0xc0]
push edx
call fcn.0040582f
add esp, 4
mov ecx, dword [esp + 0x418]
xor ecx, esp
mov eax, 1
call fcn.00405815
add esp, 0x41c
ret 0x10