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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x1003ccc8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x420], ecx
mov eax, dword [ebp - 0x420]
cmp dword [eax + 4], 0
jne 0x1000a7d7
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000ac9e
mov ecx, dword [ebp - 0x420]
cmp dword [ecx + 0x10], 0
je 0x1000a7ed
mov eax, 1
jmp 0x1000ac9e
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x420]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x1000ac02
mov dword [ebp - 0x418], 0x1000
push 0x1000
call fcn.10019d31
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000a835
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000ac9e
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
mov edx, dword [ebp - 0x420]
cmp dword [edx + 0x14], 0
je 0x1000a878
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 0x14]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001af1c
add esp, 0xc
push 0x10033f80
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001af1c
add esp, 0xc
push 0x10033f84
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001af1c
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 0x1000a8e0
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001af1c
add esp, 0xc
push 0x10033f88
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001af1c
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x1000aa31
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 0x1000a91b
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 0x1000a96f
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 0x1000a9b6
mov edx, dword [ebp - 0x41c]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x1000a9a9
mov ecx, dword [ebp - 0x41c]
movsx edx, byte [ecx]
cmp edx, 0x2f
je 0x1000a9a9
mov eax, dword [ebp - 0x41c]
movsx ecx, byte [eax]
cmp ecx, 0x3a
jne 0x1000a9b4
mov edx, dword [ebp - 0x41c]
mov byte [edx], 0
jmp 0x1000a9b6
jmp 0x1000a960
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 0x1000a9d1
mov ecx, dword [ebp - 0x434]
sub ecx, dword [ebp - 0x438]
mov dword [ebp - 0x440], ecx
je 0x1000aa31
lea edx, [ebp - 0x410]
push edx
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001af1c
add esp, 0xc
push 0x10033f8c
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001af1c
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 0x1000aa7e
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001af1c
add esp, 0xc
push 0x10033fa0
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001af1c
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 0x1000aacb
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x410]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001af1c
add esp, 0xc
push 0x10033fc0
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001af1c
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 0x1000ab5f
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x410]
push edx
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001af1c
add esp, 0xc
push 0x10033fd0
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001af1c
add esp, 0xc
push str._system32
push 0x400
lea edx, [ebp - 0x410]
push edx
call fcn.1001af1c
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001af1c
add esp, 0xc
push 0x10033fe0
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001af1c
add esp, 0xc
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x1000ac02
push 0x400
lea edx, [ebp - 0x410]
push edx
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x1000abec
mov byte [ebp - 0x11], 0
push str.SRV
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001af1c
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001af1c
add esp, 0xc
push str.websymbols
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.1001af1c
add esp, 0xc
push str.http:__msdl.microsoft.com_download_symbols_
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001af1c
add esp, 0xc
jmp 0x1000ac02
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.1001af1c
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x420]
mov ecx, dword [ecx + 4]
call fcn.10009880
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x1000ac29
mov edx, dword [ebp - 8]
push edx
call fcn.10019c54
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
jne 0x1000ac63
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 0x1000ac9e
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.1000a4f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000ac9b
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.10018f71
mov esp, ebp
pop ebp
ret