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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1404
call fcn.006ab750
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0
push esi
push edi
jne 0x4aaca2
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x10], 0
je 0x4aacb3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor esi, esi
test byte [ebx + 0x24], 0x10
mov byte [esp + 0x410], 0
je 0x4ab0fd
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x4aad16
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4aacd3
sub eax, esi
mov esi, eax
push esi
push ecx
lea eax, [esp + 0x418]
push 0x1000
push eax
call fcn.0069e208
push 1
mov ecx, 0x1000
push 0x6f0920
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x42c]
push edx
call fcn.0069e208
add esp, 0x20
add esi, 1
push 2
mov eax, 0x1000
push 0x6f0924
sub eax, esi
push eax
lea ecx, [esp + esi + 0x41c]
push ecx
call fcn.0069e208
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x400
add esi, 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x4aadac
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea edx, [eax + 1]
jmp 0x4aad60
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aad60
sub eax, edx
mov edi, eax
push edi
lea eax, [esp + 0x14]
push eax
mov ecx, 0x1000
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x41c]
push edx
call fcn.0069e208
push 1
add esi, edi
mov eax, 0x1000
push 0x6f0920
sub eax, esi
push eax
lea ecx, [esp + esi + 0x42c]
push ecx
call fcn.0069e208
add esp, 0x20
add esi, 1
push 0x400
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4aae6c
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aadd5
sub eax, edx
lea ecx, [esp + eax + 0xf]
lea eax, [esp + 0x10]
cmp ecx, eax
jb 0x4aae0e
lea esp, [esp]
mov al, byte [ecx]
cmp al, 0x5c
je 0x4aae0b
cmp al, 0x2f
je 0x4aae0b
cmp al, 0x3a
je 0x4aae0b
sub ecx, 1
lea edx, [esp + 0x10]
cmp ecx, edx
jae 0x4aadf0
jmp 0x4aae0e
mov byte [ecx], 0
cmp byte [esp + 0x10], 0
je 0x4aae6c
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aae20
sub eax, edx
mov edi, eax
push edi
lea eax, [esp + 0x14]
push eax
mov ecx, 0x1000
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x41c]
push edx
call fcn.0069e208
push 1
add esi, edi
mov eax, 0x1000
push 0x6f0920
sub eax, esi
push eax
lea ecx, [esp + esi + 0x42c]
push ecx
call fcn.0069e208
add esp, 0x20
add esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x400
lea edx, [esp + 0x14]
push edx
push str._NT_SYMBOL_PATH
call ebx
test eax, eax
jbe 0x4aaee2
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aae96
sub eax, edx
mov edi, eax
push edi
lea eax, [esp + 0x14]
push eax
mov ecx, 0x1000
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x41c]
push edx
call fcn.0069e208
push 1
add esi, edi
mov eax, 0x1000
push 0x6f0920
sub eax, esi
push eax
lea ecx, [esp + esi + 0x42c]
push ecx
call fcn.0069e208
add esp, 0x20
add esi, 1
push 0x400
lea edx, [esp + 0x14]
push edx
push str._NT_ALTERNATE_SYMBOL_PATH
call ebx
test eax, eax
jbe 0x4aaf52
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aaf06
sub eax, edx
mov edi, eax
push edi
lea eax, [esp + 0x14]
push eax
mov ecx, 0x1000
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x41c]
push edx
call fcn.0069e208
push 1
add esi, edi
mov eax, 0x1000
push 0x6f0920
sub eax, esi
push eax
lea ecx, [esp + esi + 0x42c]
push ecx
call fcn.0069e208
add esp, 0x20
add esi, 1
push 0x400
lea edx, [esp + 0x14]
push edx
push str.SYSTEMROOT
call ebx
test eax, eax
jbe 0x4ab01f
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aaf80
sub eax, edx
mov edi, eax
push edi
lea eax, [esp + 0x14]
push eax
mov ecx, 0x1000
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x41c]
push edx
call fcn.0069e208
push 1
add esi, edi
mov eax, 0x1000
push 0x6f0920
sub eax, esi
push eax
lea ecx, [esp + esi + 0x42c]
push ecx
call fcn.0069e208
lea eax, [esp + 0x30]
add esp, 0x20
add esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aafd3
sub eax, edx
mov edi, eax
push edi
lea edx, [esp + 0x14]
push edx
mov eax, 0x1000
sub eax, esi
push eax
lea ecx, [esp + esi + 0x41c]
push ecx
call fcn.0069e208
push 0xa
add esi, edi
mov edx, 0x1000
push str._system32_
sub edx, esi
push edx
lea eax, [esp + esi + 0x42c]
push eax
call fcn.0069e208
add esp, 0x20
add esi, 0xa
mov ecx, dword [ebp + 8]
test byte [ecx + 0x24], 0x10
je 0x4ab0fb
push 0x400
lea edx, [esp + 0x14]
push edx
push str.SYSTEMDRIVE
call ebx
test eax, eax
lea ecx, [esp + esi + 0x410]
mov eax, 0x1000
jbe 0x4ab0e3
push 4
push str.SRV
sub eax, esi
push eax
push ecx
mov byte [esp + 0x41f], 0
call fcn.0069e208
lea eax, [esp + 0x20]
add esp, 0x10
add esi, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ab076
sub eax, edx
mov edi, eax
push edi
lea edx, [esp + 0x14]
push edx
mov eax, 0x1000
sub eax, esi
push eax
lea ecx, [esp + esi + 0x41c]
push ecx
call fcn.0069e208
push 0xb
add esi, edi
mov edx, 0x1000
push str.websymbols
sub edx, esi
push edx
lea eax, [esp + esi + 0x42c]
push eax
call fcn.0069e208
push 0x2c
add esi, 0xb
mov ecx, 0x1000
push str.http:__msdl.microsoft.com_download_symbols_
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x43c]
push edx
call fcn.0069e208
mov ebx, dword [ebp + 8]
add esp, 0x30
jmp 0x4ab0fd
push 0x3d
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
sub eax, esi
push eax
push ecx
call fcn.0069e208
mov ebx, dword [ebp + 8]
add esp, 0x10
jmp 0x4ab0fd
mov ebx, ecx
mov esi, dword [ebx + 4]
lea edx, [esp + 0x410]
push edx
call fcn.004aa580
test al, al
je 0x4aac8c
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 4]
push eax
push esi
push edi
call fcn.004aa7a0
test al, al
je 0x4ab138
mov al, 1
mov byte [ebx + 0x10], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.004aa920
test al, al
je 0x4ab146
mov byte [ebx + 0x10], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4