Function at 0x40194c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47c0f1
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x14], 2
mov edi, eax
jle 0x4019cb
push dword [esp + 0x14]
push str.LightSvr_FAILED_nArgc_d
push ebx
push str.LightSvr.cpp
call fcn.00404060
add esp, 0x10
xor eax, eax
jmp 0x401dcf
jne 0x401dcc
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
mov dword [esp + 0x488], ebx
push 0x206
mov word [esp + 0x68], ax
lea eax, [esp + 0x6a]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x64]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401a30
lea ecx, [esp + 0x64]
call fcn.00402821
push eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x24]
call fcn.0040235a
mov esi, dword [sym.imp.MSVCR120.dll__wcsicmp]
push 0x48a238
push dword [edi + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401b1e
push 0x206
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
cmp dword [esp + 0x30], 8
cmovae eax, dword [esp + 0x1c]
push 0x48a240
push eax
push str.__s___s
lea eax, [esp + 0x278]
push 0xffffffffffffffff
push eax
call fcn.004026c5
add esp, 0x14
lea eax, [esp + 0x26c]
mov edi, str.LightSvr.cpp
push eax
push str.LightSvrOption_InstallService_szInstallCmd_s
push ebx
push edi
call fcn.00404060
pop ecx
pop ecx
lea ecx, [esp + 0x274]
call fcn.004051d0
pop ecx
pop ecx
test eax, eax
jne 0x401ad1
push str.LightSvrOption_InstallService_OK
push ebx
push edi
call fcn.00404060
add esp, 0xc
jmp 0x401ae1
push eax
push str.LightSvrOption_InstallService_FAILED_ret_d
push ebx
push edi
call fcn.00404060
add esp, 0x10
push ecx
call fcn.004054c0
pop ecx
test eax, eax
jne 0x401afd
push str.LightSvrOption_StartService_OK
push ebx
push edi
call fcn.00404060
add esp, 0xc
jmp 0x401b0d
push eax
push str.LightSvrOption_StartService_FAILED_ret_d
push ebx
push edi
call fcn.00404060
add esp, 0x10
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.00402018
jmp 0x4019c4
push 0x48a444
push dword [edi + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401b71
push str.LightSvrOption_Uninstall_Sevice
push ebx
mov edi, str.LightSvr.cpp
push edi
call fcn.00404060
add esp, 0xc
call fcn.00405350
call fcn.00405290
test eax, eax
jne 0x401b64
push str.LightSvrOption_Uninstall_Sevice_OK
push ebx
push edi
call fcn.00404060
add esp, 0xc
jmp 0x401dc0
push eax
push str.LightSvrOption_Uninstall_Sevice_FAILED_ret_d
push ebx
push edi
jmp 0x401db8
push 0x48a534
push dword [edi + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401bad
push str.LightSvrOption_Start_Sevice
push ebx
mov edi, str.LightSvr.cpp
push edi
call fcn.00404060
pop ecx
pop ecx
call fcn.004054c0
pop ecx
test eax, eax
jne 0x401ba5
push str.LightSvrOption_Start_Sevice_OK
jmp 0x401b55
push eax
push str.LightSvrOption_Start_Sevice_FAILED_ret_d
jmp 0x401b6a
push 0x48a60c
push dword [edi + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401bda
push str.LightSvrOption_Stop_Sevice
push ebx
push str.LightSvr.cpp
call fcn.00404060
add esp, 0xc
call fcn.00405350
jmp 0x401dc0
push 0x48a240
push dword [edi + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401c1c
push str.LightSvrOption_Run_Sevice
push ebx
mov edi, str.LightSvr.cpp
push edi
call fcn.00404060
pop ecx
pop ecx
call fcn.00405140
pop ecx
test eax, eax
jne 0x401c11
push str.LightSvrOption_Run_Sevice_OK
jmp 0x401b55
push eax
push str.LightSvrOption_Run_Sevice_FAILED_ret_d
jmp 0x401b6a
push 0x48a710
push dword [edi + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401cb7
call fcn.004058e0
mov esi, eax
mov edi, str.LightSvr.cpp
push esi
push str.LightSvr_Launch_Manual_bSvrRun_d
push ebx
push edi
call fcn.00404060
add esp, 0x10
test esi, esi
je 0x401c55
call fcn.00405350
call fcn.00405290
test eax, eax
jne 0x401c6f
push str.LightSvr__LightSvrOption_Launch_Svr_Before_RemoveService_OK
push ebx
push edi
call fcn.00404060
add esp, 0xc
jmp 0x401c7f
push eax
push str.LightSvr__LightSvrOption_Launch_Svr_Before_RemoveService_FAILED_ret_d
push ebx
push edi
call fcn.00404060
add esp, 0x10
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push str.LightSvr_LightSvrOption_Launch_Svr_Is_Not_Exist_Try_to_Start_Svr_strSvrExe:_s
push ebx
push edi
call fcn.00404060
cmp dword [esp + 0x40], 8
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add esp, 8
call fcn.004059a0
pop ecx
pop ecx
jmp 0x401dc0
push 0x48a904
push dword [edi + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401d6a
call fcn.0040f900
mov esi, eax
push esi
push str.LightSvr_LightSvrOption_Set_Auto_Start_bAutoRun_d
push ebx
push str.LightSvr.cpp
call fcn.00404060
add esp, 0x10
test esi, esi
jne 0x401d60
lea ecx, [esp + 0x4c]
call fcn.00406330
push str.LightProxy.exe
mov edx, eax
mov byte [esp + 0x48c], 1
lea ecx, [esp + 0x38]
call fcn.004026e5
pop ecx
push ebx
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x490], 3
call fcn.00402018
cmp dword [esp + 0x48], 8
lea esi, [esp + 0x34]
cmovae esi, dword [esp + 0x34]
call fcn.0040e7a0
cmp eax, 0x258
mov edx, esi
push ecx
sbb eax, eax
inc eax
je 0x401d47
call fcn.0040edf0
jmp 0x401d4c
call fcn.0040e960
pop ecx
push ebx
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x490], bl
call fcn.00402018
xor ecx, ecx
inc ecx
call fcn.00412870
jmp 0x401dc0
push 0x48a9c0
push dword [edi + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x401dc0
call fcn.0040f900
mov esi, eax
cmp esi, 1
jne 0x401da5
call fcn.0040e7a0
cmp eax, 0x258
jb 0x401d99
call fcn.0040f420
jmp 0x401d9e
call fcn.0040ebd0
call fcn.0040f900
mov esi, eax
xor ecx, ecx
call fcn.00412870
push esi
push str.LightSvr_LightSvrOption_close_Auto_Start_bAutoRun_d
push ebx
push str.LightSvr.cpp
call fcn.00404060
add esp, 0x10
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.00402018
xor eax, eax
inc eax
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.00452da4
mov esp, ebp
pop ebp
ret