Function at 0x405b40
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Init___n
mov edi, edx
mov esi, ecx
call fcn.004016a0
mov eax, dword [vtable.CCommandLine.0]
add esp, 4
mov ecx, 0x49c21c
push 0
push str._debug
call dword [eax + 8]
test eax, eax
jne 0x405bc4
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._dev
call dword [eax + 8]
test eax, eax
jne 0x405bc4
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str.developer_1
call dword [eax + 8]
test eax, eax
jne 0x405bc4
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._developer
call dword [eax + 8]
test eax, eax
je 0x405c51
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
call fcn.00410526
add esp, 4
push eax
push 0x435d60
push str.CONIN_
call fcn.00415c51
add esp, 0xc
push 1
call fcn.00410526
add esp, 4
push eax
push 0x438d70
push str.CONOUT_
call fcn.00415c51
add esp, 0xc
push 2
call fcn.00410526
add esp, 4
push eax
push 0x438d70
push str.CONOUT_
call fcn.00415c51
add esp, 0xc
push str.CSO_launcher_debug_console
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0x438d97
push 0
call fcn.00415ecc
add esp, 8
push 0x1c
lea eax, [ebp - 0x30]
mov dword [0x49cfc4], esi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
call esi
mov ecx, dword [0x49cfc4]
neg eax
push 0x1c
sbb eax, eax
and eax, dword [ebp - 0x2c]
mov dword [0x49cfb8], eax
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x50]
mov dword [0x49ceec], eax
lea eax, [ebp - 0x30]
push eax
push edi
call esi
lea eax, [ebp - 8]
mov ecx, 0x49c21c
push eax
mov eax, dword [vtable.CCommandLine.0]
push 0x438f1c
call dword [eax + 8]
test eax, eax
je 0x405cb3
mov eax, dword [ebp - 8]
test eax, eax
je 0x405cb3
push 0x10
push eax
jmp 0x405cba
push 0xa
push str.127.0.0.1
push 0x49cea0
call fcn.00416230
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, 0x49c21c
push eax
mov eax, dword [vtable.CCommandLine.0]
push str._port
call dword [eax + 8]
test eax, eax
je 0x405ced
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405ced
push 6
push eax
jmp 0x405cf4
push 6
push str.30002
push 0x49cf24
call fcn.00416230
mov eax, dword [vtable.CCommandLine.0]
add esp, 0xc
mov ecx, 0x49c21c
push 0
push str._register
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [vtable.CCommandLine.0]
setne byte [0x49cf04]
push str._login
call dword [eax + 8]
test eax, eax
je 0x405d61
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x405d61
push 0x40
push eax
push 0x49cf30
call fcn.00416230
add esp, 0xc
push 0x49cf30
push str.g_pLogin___s_n
call fcn.004016a0
add esp, 8
lea eax, [ebp - 0x14]
mov ecx, 0x49c21c
push eax
mov eax, dword [vtable.CCommandLine.0]
push str._password
call dword [eax + 8]
test eax, eax
je 0x405da4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405da4
push 0x40
push eax
push 0x49cf70
call fcn.00416230
add esp, 0xc
push 0x49cf70
push str.g_pPassword___s_n
call fcn.004016a0
add esp, 8
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0
push str._useoriginalserver
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._dumpmetadata
setne byte [0x49cf2b]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._ignoremetadata
setne byte [0x49cf07]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._dumpquest
setne byte [0x49cee0]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._dumpumsg
setne byte [0x49cf2a]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._dumpalarm
setne byte [0x49cf05]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._dumpitem
setne byte [0x49cee1]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._dumpall
setne byte [0x49ceb2]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._dumpcrypt
setne byte [0x49cee3]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._disableauthui
setne byte [0x49cf06]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._usessl
setne byte [0x49ceb1]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
setne byte [0x49cfcc]
push str._writemetadata
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._loaddedicsvfromfile
setne byte [0x49cee2]
call dword [eax + 8]
test eax, eax
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
push 0
push str._nonghook
setne byte [0x49ceb0]
call dword [eax + 8]
push 0x49cf24
test eax, eax
push 0x49cea0
push str.g_pServerIP___s__g_pServerPort___s_n
setne byte [0x49ceb3]
call fcn.004016a0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret