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

Disassembly:
jmp 0x402790
push 0xffffffffffffffff
push 0x46fc68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
xor ebp, ebp
push 0x486f38
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], 1
call sub.MFC42u.DLL_CString::CString_3
push ebp
push 0x2d
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call sub.MFC42u.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x402939
mov edi, dword [sym.imp.MSVCRT.dll__wcsicoll]
push ebx
mov bl, 2
inc esi
push 5
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Mid_1
mov ecx, dword [esp + 0x1c]
push str.unlog
push ecx
mov byte [esp + 0x40], bl
call edi
add esp, 8
test eax, eax
jne 0x402834
mov dword [esp + 0x20], eax
mov ebp, 1
push 6
lea edx, [esp + 0x28]
push esi
push edx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push 0x4809d0
push eax
call edi
add esp, 8
test eax, eax
jne 0x40290f
lea ecx, [esi + 6]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 4
call sub.MFC42u.DLL_CString::TrimLeft
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402902
cmp word [eax], 0x22
jne 0x402902
push 0x22
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::TrimLeft_1
push 1
push 0x22
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x4028f2
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 5
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 4
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
test eax, eax
je 0x402902
mov ebp, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42u.DLL_CString::CString
push esi
push 0x2d
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Find_2
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x38], 1
call sub.MFC42u.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x402802
mov edi, dword [esp + 0x2c]
pop ebx
mov edx, dword [esp + 0x14]
push 0x486f38
mov eax, dword [edx - 8]
test eax, eax
jne 0x4029b8
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
push 0x104
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 6
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x4809cc
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::TrimRight_2
mov eax, dword [esp + 0xc]
push str.AgentInstall
push eax
add edi, 0xc4
push str._logDir__s_s_
push edi
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x4029c3
lea ecx, [edi + 0xc4]
call sub.MFC42u.DLL_CString::operator
pop edi
pop esi
test ebp, ebp
pop ebp
je 0x4029dc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.00401537
add esp, 8
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret