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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x414904
cmp dword [edi + 0x10], 0
je 0x41460d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
test byte [edi + 0x18], 0x10
je 0x4148d9
push 0x1000
call fcn.00423ebd
mov esi, eax
add esp, 4
test esi, esi
jne 0x41463d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x414669
push eax
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x44e69c
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x44e6a0
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4146be
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
push eax
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x44e69c
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x400
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x414757
lea ecx, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4146e7
sub ecx, edx
lea eax, [esp + ecx + 0xf]
lea ecx, [esp + 0x10]
cmp eax, ecx
jb 0x41471f
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x41471c
cmp cl, 0x2f
je 0x41471c
cmp cl, 0x3a
je 0x41471c
dec eax
lea ecx, [esp + 0x10]
cmp eax, ecx
jae 0x414700
jmp 0x41471f
mov byte [eax], 0
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414726
sub ecx, edx
je 0x414757
lea eax, [esp + 0x10]
push eax
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x44e69c
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 0x10]
push 0x400
push eax
push str._NT_SYMBOL_PATH
call ebx
test eax, eax
je 0x4147a0
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
push eax
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x44e69c
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x400
lea eax, [esp + 0x14]
push eax
push str._NT_ALTERNATE_SYMBOL_PATH
call ebx
test eax, eax
je 0x4147e3
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
push eax
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x44e69c
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x400
lea eax, [esp + 0x14]
push eax
push str.SYSTEMROOT
call ebx
test eax, eax
je 0x414863
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
push eax
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x44e69c
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
lea eax, [esp + 0x10]
push str._system32
push 0x400
push eax
call fcn.00426058
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push 0x44e69c
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
test byte [edi + 0x18], 0x10
je 0x4148d9
push 0x400
lea eax, [esp + 0x14]
push eax
push str.SYSTEMDRIVE
call ebx
test eax, eax
je 0x4148c6
push str.SRV
push 0x1000
push esi
mov byte [esp + 0x41b], 0
call fcn.00426058
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push str.websymbols
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
push str.http:__msdl.microsoft.com_download_symbols_
jmp 0x4148cb
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
push 0x1000
push esi
call fcn.00426058
add esp, 0xc
mov ecx, dword [edi + 4]
push esi
call fcn.00413b70
mov ebx, eax
test esi, esi
je 0x4148f1
push esi
call fcn.00422f1c
add esp, 4
test ebx, ebx
jne 0x414918
mov eax, dword [edi]
mov ecx, edi
push ebx
push ebx
push ebx
push str.Error_while_initializing_dbghelp.dll
call dword [eax + 0x10]
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0xc]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 4]
mov ecx, ebx
push esi
call fcn.00413ee0
test eax, eax
je 0x41493c
mov eax, 1
mov dword [edi + 0x10], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ecx, ebx
call fcn.00414010
test eax, eax
je 0x41494f
mov dword [edi + 0x10], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret