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

Disassembly:
push 0xffffffffffffffff
push 0x506370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call fcn.004ea7b5
push 0x556998
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0
xor edi, edi
mov ebp, 1
call fcn.004ea7b5
push edi
push 0x2d
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.004eac8b
mov esi, eax
cmp esi, 0xffffffff
je 0x401ce1
inc esi
push 5
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004e370d
mov ecx, dword [esp + 0x18]
push str.unlog
push ecx
mov byte [esp + 0x3c], 2
call fcn.0043521d
add esp, 8
test eax, eax
jne 0x401bdc
xor ebp, ebp
mov edi, 1
push 6
lea edx, [esp + 0x28]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.004e370d
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
call fcn.004ea888
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 2
call fcn.004ea741
mov eax, dword [esp + 0x18]
push 0x53d430
push eax
call fcn.0043521d
add esp, 8
test eax, eax
jne 0x401cbc
lea ecx, [esi + 6]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004e36ea
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 4
call fcn.004e3f30
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x401cae
cmp word [eax], 0x22
jne 0x401cae
push 0x22
lea ecx, [esp + 0x10]
call fcn.004e3eed
push 1
push 0x22
lea ecx, [esp + 0x14]
call fcn.004eac8b
cmp eax, 0xffffffff
je 0x401c9e
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.004e381f
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 5
call fcn.004ea888
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 4
call fcn.004ea741
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x401cae
mov edi, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 2
call fcn.004ea741
push esi
push 0x2d
lea ecx, [esp + 0x18]
call fcn.004eac8b
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x34], 1
call fcn.004ea741
cmp esi, 0xffffffff
jne 0x401ba8
mov edx, dword [esp + 0x14]
push 0x556998
mov eax, dword [edx - 8]
test eax, eax
jne 0x401d64
lea ecx, [esp + 0x10]
call fcn.004ea7b5
push 0x104
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 6
call fcn.004eab86
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.004eabd6
push 0x53d42c
lea ecx, [esp + 0x10]
call fcn.004e3dac
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push str.AgentInstall
push eax
add ecx, 0x290
push str._logDir__s_s_
push ecx
call fcn.004e3c81
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call fcn.004ea741
jmp 0x401d73
mov edx, dword [esp + 0x20]
lea ecx, [edx + 0x290]
call fcn.004ea8d8
test edi, edi
je 0x401d85
mov eax, dword [esp + 0x14]
push ebp
push eax
call fcn.0041e890
add esp, 8
push str...._r_n
lea ecx, [esp + 0x24]
call fcn.004ea7b5
mov ecx, dword [esp + 0x20]
push 0
push 2
push ecx
mov byte [esp + 0x40], 7
call fcn.0041e4e0
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 1
call fcn.004ea741
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.004ea741
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret