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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
push ecx
lea edi, [ebp - 0x418]
mov ecx, 0x106
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x418], ecx
mov eax, dword [ebp - 0x418]
cmp dword [eax + 4], 0
jne 0x1001418c
mov esi, esp
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10021b10
xor eax, eax
jmp 0x100145c1
mov ecx, dword [ebp - 0x418]
cmp dword [ecx + 0x10], 0
je 0x100141a2
mov eax, 1
jmp 0x100145c1
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x418]
mov eax, dword [edx + 0x18]
and eax, 0x10
test eax, eax
je 0x10014515
mov dword [ebp - 0x410], 0x1000
push 0x1000
call fcn.10022ed0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100141f5
mov esi, esp
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10021b10
xor eax, eax
jmp 0x100145c1
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
mov edx, dword [ebp - 0x418]
cmp dword [edx + 0x14], 0
je 0x1001422e
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10022260
add esp, 8
push 0x100f577c
mov eax, dword [ebp - 8]
push eax
call fcn.10022260
add esp, 8
push 0x100f5780
mov ecx, dword [ebp - 8]
push ecx
call fcn.10022260
add esp, 8
mov dword [ebp - 0x40c], 0x400
mov esi, esp
lea edx, [ebp - 0x408]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x10014290
mov byte [ebp - 9], 0
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10022260
add esp, 8
push 0x100f5784
mov edx, dword [ebp - 8]
push edx
call fcn.10022260
add esp, 8
mov esi, esp
push 0x400
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x10014364
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x408]
push ecx
call fcn.10022340
add esp, 4
lea edx, [ebp + eax - 0x409]
mov dword [ebp - 0x414], edx
jmp 0x100142e6
mov eax, dword [ebp - 0x414]
sub eax, 1
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0x408]
cmp ecx, edx
jb 0x1001432d
mov eax, dword [ebp - 0x414]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x10014320
mov edx, dword [ebp - 0x414]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x10014320
mov ecx, dword [ebp - 0x414]
movsx edx, byte [ecx]
cmp edx, 0x3a
jne 0x1001432b
mov eax, dword [ebp - 0x414]
mov byte [eax], 0
jmp 0x1001432d
jmp 0x100142d7
lea ecx, [ebp - 0x408]
push ecx
call fcn.10022340
add esp, 4
test eax, eax
jbe 0x10014364
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10022260
add esp, 8
push 0x100f5788
mov ecx, dword [ebp - 8]
push ecx
call fcn.10022260
add esp, 8
mov esi, esp
push 0x400
lea edx, [ebp - 0x408]
push edx
push str._NT_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x100143b0
mov byte [ebp - 9], 0
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10022260
add esp, 8
push 0x100f579c
mov edx, dword [ebp - 8]
push edx
call fcn.10022260
add esp, 8
mov esi, esp
push 0x400
lea eax, [ebp - 0x408]
push eax
push str._NT_ALTERNATE_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x100143fc
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10022260
add esp, 8
push 0x100f57bc
mov eax, dword [ebp - 8]
push eax
call fcn.10022260
add esp, 8
mov esi, esp
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x10014480
mov byte [ebp - 9], 0
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10022260
add esp, 8
push 0x100f57cc
mov ecx, dword [ebp - 8]
push ecx
call fcn.10022260
add esp, 8
push str._system32
lea edx, [ebp - 0x408]
push edx
call fcn.10022260
add esp, 8
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10022260
add esp, 8
push 0x100f57dc
mov edx, dword [ebp - 8]
push edx
call fcn.10022260
add esp, 8
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
test ecx, ecx
je 0x10014515
mov esi, esp
push 0x400
lea edx, [ebp - 0x408]
push edx
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x10014504
mov byte [ebp - 9], 0
push str.SRV
mov eax, dword [ebp - 8]
push eax
call fcn.10022260
add esp, 8
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10022260
add esp, 8
push str.websymbols
mov eax, dword [ebp - 8]
push eax
call fcn.10022260
add esp, 8
push str.http:__msdl.microsoft.com_download_symbols_
mov ecx, dword [ebp - 8]
push ecx
call fcn.10022260
add esp, 8
jmp 0x10014515
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
mov edx, dword [ebp - 8]
push edx
call fcn.10022260
add esp, 8
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 4]
call fcn.100154d0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x1001453c
mov edx, dword [ebp - 8]
push edx
call fcn.10023940
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
jne 0x10014586
mov esi, esp
push 0
push 0
push 0
push str.Error_while_initializing_dbghelp.dll
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x418]
call dword [edx + 0x10]
cmp esi, esp
call fcn.10021b10
mov esi, esp
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10021b10
xor eax, eax
jmp 0x100145c1
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x418]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 4]
call fcn.10015b30
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100145be
mov edx, dword [ebp - 0x418]
mov dword [edx + 0x10], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
add esp, 0x418
cmp ebp, esp
call fcn.10021b10
mov esp, ebp
pop ebp
ret