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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push esi
push edi
push ecx
lea edi, [ebp - 0x43c]
mov ecx, 0x10f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10159140]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x1003d000
mov esi, esp
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.1007e7c0
xor eax, eax
jmp 0x1003d5a4
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x1003d013
mov eax, 1
jmp 0x1003d5a4
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x1003d4fc
mov dword [ebp - 0x10], 0x1000
push 0x1000
call fcn.100da0e0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1003d05e
mov esi, esp
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.1007e7c0
xor eax, eax
jmp 0x1003d5a4
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0xc]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], 0
je 0x1003d0a4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100d9bf0
add esp, 0xc
push 0x10124fc8
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
call fcn.100d9bf0
add esp, 0xc
push 0x10124fcc
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
call fcn.100d9bf0
add esp, 0xc
mov dword [ebp - 0x14], 0x400
mov esi, esp
lea ecx, [ebp - 0x418]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call fcn.1007e7c0
test eax, eax
jbe 0x1003d140
mov edx, 1
imul eax, edx, 0x3ff
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0x400
jae 0x1003d0ff
jmp 0x1003d104
call fcn.1007ecf0
mov ecx, dword [ebp - 0x428]
mov byte [ebp + ecx - 0x418], 0
lea edx, [ebp - 0x418]
push edx
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
call fcn.100d9bf0
add esp, 0xc
push 0x10124fd0
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100d9bf0
add esp, 0xc
mov esi, esp
push 0x400
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, esp
call fcn.1007e7c0
test eax, eax
jbe 0x1003d24a
mov eax, 1
imul ecx, eax, 0x3ff
mov dword [ebp - 0x42c], ecx
cmp dword [ebp - 0x42c], 0x400
jae 0x1003d184
jmp 0x1003d189
call fcn.1007ecf0
mov edx, dword [ebp - 0x42c]
mov byte [ebp + edx - 0x418], 0
lea eax, [ebp - 0x418]
push eax
call fcn.100cffc0
add esp, 4
lea ecx, [ebp + eax - 0x419]
mov dword [ebp - 0x420], ecx
jmp 0x1003d1c4
mov edx, dword [ebp - 0x420]
sub edx, 1
mov dword [ebp - 0x420], edx
lea eax, [ebp - 0x418]
cmp dword [ebp - 0x420], eax
jb 0x1003d209
mov ecx, dword [ebp - 0x420]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x1003d1fc
mov eax, dword [ebp - 0x420]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x1003d1fc
mov edx, dword [ebp - 0x420]
movsx eax, byte [edx]
cmp eax, 0x3a
jne 0x1003d207
mov ecx, dword [ebp - 0x420]
mov byte [ecx], 0
jmp 0x1003d209
jmp 0x1003d1b5
lea edx, [ebp - 0x418]
push edx
call fcn.100cffc0
add esp, 4
test eax, eax
jbe 0x1003d24a
lea eax, [ebp - 0x418]
push eax
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100d9bf0
add esp, 0xc
push 0x10124fd4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
call fcn.100d9bf0
add esp, 0xc
mov esi, esp
push 0x400
lea eax, [ebp - 0x418]
push eax
push str._NT_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.1007e7c0
test eax, eax
jbe 0x1003d2ce
mov ecx, 1
imul edx, ecx, 0x3ff
mov dword [ebp - 0x430], edx
cmp dword [ebp - 0x430], 0x400
jae 0x1003d28d
jmp 0x1003d292
call fcn.1007ecf0
mov eax, dword [ebp - 0x430]
mov byte [ebp + eax - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
call fcn.100d9bf0
add esp, 0xc
push 0x10124fe8
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
call fcn.100d9bf0
add esp, 0xc
mov esi, esp
push 0x400
lea ecx, [ebp - 0x418]
push ecx
push str._NT_ALTERNATE_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.1007e7c0
test eax, eax
jbe 0x1003d352
mov edx, 1
imul eax, edx, 0x3ff
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0x400
jae 0x1003d311
jmp 0x1003d316
call fcn.1007ecf0
mov ecx, dword [ebp - 0x434]
mov byte [ebp + ecx - 0x418], 0
lea edx, [ebp - 0x418]
push edx
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
call fcn.100d9bf0
add esp, 0xc
push 0x10125008
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100d9bf0
add esp, 0xc
mov esi, esp
push 0x400
lea edx, [ebp - 0x418]
push edx
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.1007e7c0
test eax, eax
jbe 0x1003d421
mov eax, 1
imul ecx, eax, 0x3ff
mov dword [ebp - 0x438], ecx
cmp dword [ebp - 0x438], 0x400
jae 0x1003d399
jmp 0x1003d39e
call fcn.1007ecf0
mov edx, dword [ebp - 0x438]
mov byte [ebp + edx - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100d9bf0
add esp, 0xc
push 0x10125018
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
call fcn.100d9bf0
add esp, 0xc
push str._system32
push 0x400
lea eax, [ebp - 0x418]
push eax
call fcn.100d9bf0
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
call fcn.100d9bf0
add esp, 0xc
push 0x10125028
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
call fcn.100d9bf0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
and edx, 0x20
je 0x1003d4fc
mov esi, esp
push 0x400
lea eax, [ebp - 0x418]
push eax
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.1007e7c0
test eax, eax
jbe 0x1003d4e6
mov ecx, 1
imul edx, ecx, 0x3ff
mov dword [ebp - 0x43c], edx
cmp dword [ebp - 0x43c], 0x400
jae 0x1003d477
jmp 0x1003d47c
call fcn.1007ecf0
mov eax, dword [ebp - 0x43c]
mov byte [ebp + eax - 0x418], 0
push str.SRV
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100d9bf0
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
call fcn.100d9bf0
add esp, 0xc
push str.websymbols
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100d9bf0
add esp, 0xc
push str.https:__msdl.microsoft.com_download_symbols_
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
call fcn.100d9bf0
add esp, 0xc
jmp 0x1003d4fc
push str.SRVc:websymbolshttps:__msdl.microsoft.com_download_symbols_
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
call fcn.100d9bf0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 4]
call fcn.1003f480
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0xc], 0
je 0x1003d523
mov eax, dword [ebp - 0xc]
push eax
call fcn.10097ed0
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x424], 0
jne 0x1003d56c
mov esi, esp
push 0
push 0
push 0
push str.Error_while_initializing_dbghelp.dll
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
call eax
cmp esi, esp
call fcn.1007e7c0
mov esi, esp
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.1007e7c0
xor eax, eax
jmp 0x1003d5a4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 4]
call fcn.1003fef0
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x1003d59e
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 0x424]
push edx
mov ecx, ebp
push eax
lea edx, [0x1003d5d4]
call fcn.1007e760
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
add esp, 0x43c
cmp ebp, esp
call fcn.1007e7c0
mov esp, ebp
pop ebp
ret