Function at 0x405f00
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x298
push ebx
push esi
push edi
push 1
xor ebx, ebx
push str.PPLiveU.exe
push ebx
call fcn.00405d10
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x64]
add esp, 0xc
rep stosd dword es:[edi], eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
push 0x104
mov dword [esp + 0x44], eax
push ecx
push ebx
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x9c]
push str.PPLiveU.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x9c]
push edx
call edi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x28]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x405fcf
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x9c]
push esi
push eax
push ecx
call fcn.00404010
add esp, 0xc
lea ecx, [esp + 0x28]
push esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
push 0x40a8a0
call edi
add esp, 4
lea ecx, [esp + 0x28]
push eax
push 0x40a8a0
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
mov dword [esp + 0x10], 1
je 0x4060f1
push ebp
lea ebp, [eax + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jge 0x4060f0
mov cl, byte [esp + 0x13]
mov edi, dword [ebp]
mov byte [esp + 0x1c], cl
push ebx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x40a89c
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x1c]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x406079
mov edx, dword [esp + 0x20]
push esi
push 0x40a89c
push edx
call fcn.00404010
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], esi
add esp, 0xc
mov word [eax + esi*2], bx
lea ecx, [esp + 0x1c]
push edi
lea edx, [esp + 0x50]
push ecx
push edx
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
add esp, 0xc
mov edx, dword [ecx]
lea ecx, [esp + 0x2c]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x4060d3
mov al, byte [ecx - 1]
cmp al, bl
je 0x4060c7
cmp al, 0xff
je 0x4060c7
dec al
mov byte [ecx - 1], al
jmp 0x4060d3
add ecx, 0xfffffffe
push ecx
call fcn.00406806
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
inc ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ecx
add ebp, 4
jmp 0x406013
pop ebp
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4060fe
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x58]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40617d
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x3c]
push edx
call esi
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x40616e
mov al, byte [ecx - 1]
cmp al, bl
je 0x406162
cmp al, 0xff
je 0x406162
dec al
pop edi
mov byte [ecx - 1], al
pop esi
mov eax, 1
pop ebx
add esp, 0x298
ret
add ecx, 0xfffffffe
push ecx
call fcn.00406806
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x298
ret
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x4061ad
mov al, byte [ecx - 1]
cmp al, bl
je 0x4061a1
cmp al, 0xff
je 0x4061a1
dec al
pop edi
mov byte [ecx - 1], al
pop esi
xor eax, eax
pop ebx
add esp, 0x298
ret
add ecx, 0xfffffffe
push ecx
call fcn.00406806
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x298
ret