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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.0059fbd0
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp dword [eax + 4], esi
push edi
jne 0x4a0832
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x4a0c61
cmp byte [eax + 0x10], 0
je 0x4a083f
mov al, 1
jmp 0x4a0c61
test byte [eax + 0x24], 0x10
mov byte [ebp - 0x140c], 0
je 0x4a0c31
mov ecx, dword [eax + 0x14]
cmp ecx, esi
mov edi, 0x1000
mov ebx, 0x5e47a8
je 0x4a0899
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a0866
sub eax, esi
mov esi, eax
push esi
push ecx
lea eax, [ebp - 0x140c]
push edi
push eax
call fcn.00592460
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esp, 0x20
inc esi
push 2
mov eax, edi
sub eax, esi
push 0x5e47ac
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
inc esi
push 0x400
inc esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x4a091c
lea eax, [ebp - 0x40c]
mov byte [ebp - 0xd], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a08da
sub eax, ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esi, dword [ebp - 8]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esp, 0x20
inc esi
push 0x400
lea eax, [ebp - 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4a09cc
lea eax, [ebp - 0x40c]
mov byte [ebp - 0xd], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0945
sub eax, edx
lea eax, [ebp + eax - 0x40d]
jmp 0x4a0969
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4a0975
cmp cl, 0x2f
je 0x4a0975
cmp cl, 0x3a
je 0x4a0975
dec eax
lea ecx, [ebp - 0x40c]
cmp eax, ecx
jae 0x4a0957
jmp 0x4a0978
mov byte [eax], 0
cmp byte [ebp - 0x40c], 0
je 0x4a09cc
lea eax, [ebp - 0x40c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a098a
sub eax, edx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esi, dword [ebp - 8]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esp, 0x20
inc esi
push 0x400
lea eax, [ebp - 0x40c]
push eax
push str._NT_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4a0a36
lea eax, [ebp - 0x40c]
mov byte [ebp - 0xd], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a09f4
sub eax, ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esi, dword [ebp - 8]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esp, 0x20
inc esi
push 0x400
lea eax, [ebp - 0x40c]
push eax
push str._NT_ALTERNATE_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4a0aa0
lea eax, [ebp - 0x40c]
mov byte [ebp - 0xd], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a0a5e
sub eax, ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esi, dword [ebp - 8]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esp, 0x20
inc esi
push 0x400
lea eax, [ebp - 0x40c]
push eax
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4a0b5d
lea eax, [ebp - 0x40c]
mov byte [ebp - 0xd], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a0acc
sub eax, ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esi, dword [ebp - 8]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
lea eax, [ebp - 0x40c]
add esp, 0x20
inc esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a0b17
sub eax, ecx
mov ebx, eax
push ebx
lea eax, [ebp - 0x40c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
push 0xa
add esi, ebx
mov eax, edi
sub eax, esi
push str._system32_
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
add esp, 0x20
add esi, 0xa
mov eax, dword [ebp + 8]
test byte [eax + 0x24], 0x10
je 0x4a0c31
push 0x400
lea eax, [ebp - 0x40c]
push eax
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4a0c14
push 4
mov eax, edi
sub eax, esi
push str.SRV
push eax
lea eax, [ebp + esi - 0x140c]
push eax
mov byte [ebp - 0xd], 0
call fcn.00592460
lea eax, [ebp - 0x40c]
add esp, 0x10
add esi, 4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a0bb5
sub eax, ecx
mov ebx, eax
push ebx
lea eax, [ebp - 0x40c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
push 0xb
add esi, ebx
mov eax, edi
sub eax, esi
push str.websymbols
push eax
lea eax, [ebp + esi - 0x140c]
push eax
call fcn.00592460
push 0x2c
add esi, 0xb
push str.http:__msdl.microsoft.com_download_symbols_
sub edi, esi
lea eax, [ebp + esi - 0x140c]
push edi
push eax
call fcn.00592460
add esp, 0x30
jmp 0x4a0c2e
push 0x3d
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
sub edi, esi
lea eax, [ebp + esi - 0x140c]
push edi
push eax
call fcn.00592460
add esp, 0x10
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
lea ecx, [ebp - 0x140c]
push ecx
call fcn.004a026c
test al, al
je 0x4a0820
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call fcn.004a06d9
test al, al
je 0x4a0c61
mov byte [esi + 0x10], 1
pop edi
pop esi
pop ebx
leave
ret 4