Function at 0x4086a3
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, 0x4112bc
call fcn.00408d00
push ecx
mov eax, 0x4664
call fcn.00408e30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov ebx, 0x1f40
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x3e94]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push 0
push 0
mov edi, 0x401afc
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call esi
test eax, eax
je 0x4086ff
push ebx
lea eax, [ebp - 0x3e94]
push eax
push edi
call esi
xor edi, edi
mov dword [ebp - 0x3e98], edi
mov dword [ebp - 0x3e9c], edi
xor ebx, ebx
mov word [ebp - 0x466c], di
mov dword [ebp - 4], edi
lea esi, [ebp - 0x3e94]
mov dword [ebp - 0x4670], esi
mov cx, word [esi]
cmp cx, di
je 0x4088ab
mov eax, dword [ebp - 0x3e98]
sub eax, edi
je 0x408813
dec eax
je 0x4087ea
dec eax
je 0x408769
dec eax
jne 0x408880
cmp cx, 0x27
jne 0x408880
mov dword [ebp - 0x3e98], 2
jmp 0x408880
push ecx
call dword [sym.imp.MSVCRT.dll_iswspace]
pop ecx
test eax, eax
je 0x4087d1
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
push dword [ebp - 0x3e9c]
mov ecx, dword [ebp - 0x14]
call fcn.0040835b
inc dword [ebp - 0x3e9c]
test eax, eax
lea eax, [ebp - 0x466c]
je 0x4087aa
inc edi
push edi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0xc
jmp 0x4087b8
push 0x401ae8
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 0x4674], ebx
mov dword [ebp - 0x3e98], 1
xor edi, edi
jmp 0x408880
cmp word [esi], 0x27
jne 0x408880
mov dword [ebp - 0x3e98], 3
jmp 0x408880
push ecx
call dword [sym.imp.MSVCRT.dll_iswspace]
pop ecx
test eax, eax
jne 0x408880
mov ebx, esi
mov dword [ebp - 0x4674], ebx
cmp word [esi], 0x27
sete al
inc eax
inc eax
mov dword [ebp - 0x3e98], eax
jmp 0x408880
cmp esi, edi
je 0x40884a
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.MSVCRT.dll_iswspace]
pop ecx
test eax, eax
je 0x408832
inc esi
inc esi
mov dword [ebp - 0x4670], esi
jmp 0x408813
cmp word [esi], 0x22
jne 0x408887
inc esi
inc esi
mov dword [ebp - 0x4670], esi
cmp esi, edi
je 0x40884a
cmp word [esi], 0x22
jne 0x408838
inc dword [ebp - 0x3e9c]
mov dword [ebp - 0x3e98], 1
mov eax, esi
lea ecx, [ebp - 0x3e94]
sub eax, ecx
sar eax, 1
inc eax
inc eax
push eax
lea eax, [ebp - 0x3e94]
push eax
lea eax, [ebp - 0x466c]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0xc
inc esi
inc esi
jmp 0x40871f
cmp esi, edi
je 0x40884a
xor eax, eax
mov ax, word [esi]
cmp ax, di
je 0x40884a
push eax
call dword [sym.imp.MSVCRT.dll_iswspace]
pop ecx
test eax, eax
jne 0x40884a
inc esi
inc esi
mov dword [ebp - 0x4670], esi
jmp 0x408887
cmp ebx, edi
je 0x40890c
sub esi, ebx
sar esi, 1
push esi
push ebx
push dword [ebp - 0x3e9c]
mov ecx, dword [ebp - 0x14]
call fcn.0040835b
inc dword [ebp - 0x3e9c]
push esi
push ebx
push dword [ebp - 0x3e9c]
mov ecx, dword [ebp - 0x14]
call fcn.0040835b
inc dword [ebp - 0x3e9c]
test eax, eax
lea eax, [ebp - 0x466c]
je 0x4088f8
inc esi
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0xc
jmp 0x408906
push 0x401ae8
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov dword [ebp - 0x4674], edi
lea eax, [ebp - 0x466c]
push eax
push 0x401ad0
push 0x401870
push dword [ebp - 0x14]
call fcn.00408f88
add esp, 0x10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret