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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x1003bcc8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x420], ecx
mov eax, dword [ebp - 0x420]
cmp dword [eax + 4], 0
jne 0x10009d47
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000a20e
mov ecx, dword [ebp - 0x420]
cmp dword [ecx + 0x10], 0
je 0x10009d5d
mov eax, 1
jmp 0x1000a20e
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x420]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x1000a172
mov dword [ebp - 0x418], 0x1000
push 0x1000
call fcn.1001929c
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10009da5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000a20e
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
mov edx, dword [ebp - 0x420]
cmp dword [edx + 0x14], 0
je 0x10009de8
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 0x14]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001a3cc
add esp, 0xc
push 0x10032f60
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001a3cc
add esp, 0xc
push 0x10032f64
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001a3cc
add esp, 0xc
mov dword [ebp - 0x414], 0x400
lea edx, [ebp - 0x410]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x10009e50
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001a3cc
add esp, 0xc
push 0x10032f68
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001a3cc
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x10009fa1
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x424]
mov cl, byte [eax]
mov byte [ebp - 0x429], cl
add dword [ebp - 0x424], 1
cmp byte [ebp - 0x429], 0
jne 0x10009e8b
mov edx, dword [ebp - 0x424]
sub edx, dword [ebp - 0x428]
mov dword [ebp - 0x430], edx
mov eax, dword [ebp - 0x430]
lea ecx, [ebp + eax - 0x411]
mov dword [ebp - 0x41c], ecx
jmp 0x10009edf
mov edx, dword [ebp - 0x41c]
sub edx, 1
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
lea ecx, [ebp - 0x410]
cmp eax, ecx
jb 0x10009f26
mov edx, dword [ebp - 0x41c]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x10009f19
mov ecx, dword [ebp - 0x41c]
movsx edx, byte [ecx]
cmp edx, 0x2f
je 0x10009f19
mov eax, dword [ebp - 0x41c]
movsx ecx, byte [eax]
cmp ecx, 0x3a
jne 0x10009f24
mov edx, dword [ebp - 0x41c]
mov byte [edx], 0
jmp 0x10009f26
jmp 0x10009ed0
lea eax, [ebp - 0x410]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x434]
add ecx, 1
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x434]
mov al, byte [edx]
mov byte [ebp - 0x439], al
add dword [ebp - 0x434], 1
cmp byte [ebp - 0x439], 0
jne 0x10009f41
mov ecx, dword [ebp - 0x434]
sub ecx, dword [ebp - 0x438]
mov dword [ebp - 0x440], ecx
je 0x10009fa1
lea edx, [ebp - 0x410]
push edx
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001a3cc
add esp, 0xc
push 0x10032f6c
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001a3cc
add esp, 0xc
push 0x400
lea edx, [ebp - 0x410]
push edx
push str._NT_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x10009fee
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001a3cc
add esp, 0xc
push 0x10032f80
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001a3cc
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
push str._NT_ALTERNATE_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x1000a03b
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x410]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001a3cc
add esp, 0xc
push 0x10032fa0
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001a3cc
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x1000a0cf
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x410]
push edx
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001a3cc
add esp, 0xc
push 0x10032fb0
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001a3cc
add esp, 0xc
push str._system32
push 0x400
lea edx, [ebp - 0x410]
push edx
call fcn.1001a3cc
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001a3cc
add esp, 0xc
push 0x10032fc0
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001a3cc
add esp, 0xc
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x1000a172
push 0x400
lea edx, [ebp - 0x410]
push edx
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x1000a15c
mov byte [ebp - 0x11], 0
push str.SRV
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001a3cc
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001a3cc
add esp, 0xc
push str.websymbols
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001a3cc
add esp, 0xc
push str.http:__msdl.microsoft.com_download_symbols_
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001a3cc
add esp, 0xc
jmp 0x1000a172
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001a3cc
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x420]
mov ecx, dword [ecx + 4]
call fcn.10008df0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x1000a199
mov edx, dword [ebp - 8]
push edx
call fcn.100191bf
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
jne 0x1000a1d3
push 0
push 0
push 0
push str.Error_while_initializing_dbghelp.dll
mov eax, dword [ebp - 0x420]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x420]
mov eax, dword [edx + 0x10]
call eax
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000a20e
mov ecx, dword [ebp - 0x420]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x420]
mov ecx, dword [edx + 4]
call fcn.10009a60
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000a20b
mov eax, dword [ebp - 0x420]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.100184dc
mov esp, ebp
pop ebp
ret