Function at 0x140034060
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rsi
sub rsp, 0x430
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rsp + 0x420], rax
cmp qword [rcx + 8], 0
mov rsi, rcx
jne 0x140034097
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14003441c
cmp dword [rcx + 0x1c], 0
je 0x1400340a7
mov eax, 1
jmp 0x14003441c
mov qword [rsp + 0x448], rbx
xor ebx, ebx
test byte [rcx + 0x28], 0x10
mov qword [rsp + 0x458], rdi
je 0x14003437a
mov ecx, 0x1000
call qword [sym.imp.MSVCR100.dll_malloc]
mov rbx, rax
mov byte [rax], 0
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x140034100
mov edx, 0x1000
mov rcx, rax
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [0x14011e4fc]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [0x14011e4f8]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140034151
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [0x14011e4fc]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea rdx, [rsp + 0x20]
mov r8d, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400341f2
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
lea rax, [rsp + 0x20]
dec rax
not rcx
dec rcx
add rcx, rax
lea rax, [rsp + 0x20]
cmp rcx, rax
jb 0x1400341b5
movzx eax, byte [rcx]
cmp al, 0x5c
je 0x1400341b2
cmp al, 0x2f
je 0x1400341b2
cmp al, 0x3a
je 0x1400341b2
lea rax, [rsp + 0x20]
dec rcx
cmp rcx, rax
jae 0x140034194
jmp 0x1400341b5
mov byte [rcx], 0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x1400341f2
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [0x14011e4fc]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea rdx, [rsp + 0x20]
lea rcx, str._NT_SYMBOL_PATH
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140034236
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [0x14011e4fc]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea rdx, [rsp + 0x20]
lea rcx, str._NT_ALTERNATE_SYMBOL_PATH
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14003427a
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [0x14011e4fc]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea rdx, [rsp + 0x20]
lea rcx, str.SYSTEMROOT
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400342fd
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [0x14011e4fc]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, str._system32
lea rcx, [rsp + 0x20]
mov edx, 0x400
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [0x14011e4fc]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
test byte [rsi + 0x28], 0x10
je 0x14003437a
lea rdx, [rsp + 0x20]
lea rcx, str.SYSTEMDRIVE
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, 0x1000
mov rcx, rbx
test eax, eax
je 0x14003436d
lea r8, str.SRV
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, str.websymbols
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, str.http:__msdl.microsoft.com_download_symbols_
mov edx, 0x1000
mov rcx, rbx
jmp 0x140034374
lea r8, str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
call qword [sym.imp.MSVCR100.dll_strcat_s]
mov rcx, qword [rsi + 8]
mov rdx, rbx
call fcn.140033170
mov edi, eax
test rbx, rbx
je 0x140034396
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_free]
test edi, edi
jne 0x1400343bf
mov rax, qword [rsi]
lea rdx, str.Error_while_initializing_dbghelp.dll
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [rax + 0x20]
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14003440c
mov edi, dword [rsi + 0x18]
mov rbx, qword [rsi + 0x10]
mov qword [rsp + 0x450], rbp
mov rbp, qword [rsi + 8]
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call fcn.140033c10
test eax, eax
je 0x1400343eb
mov eax, 1
jmp 0x1400343fd
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call fcn.140033dc0
test eax, eax
je 0x140034404
mov dword [rsi + 0x1c], 1
mov rbp, qword [rsp + 0x450]
mov rbx, qword [rsp + 0x448]
mov rdi, qword [rsp + 0x458]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400d6f80
add rsp, 0x430
pop rsi
ret