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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x50f880]
xor eax, esp
mov dword [esp + 0x40c], eax
cmp dword [edi + 4], 0
push ebx
push esi
je 0x4a6bc3
cmp dword [edi + 0x10], 0
je 0x4a68c5
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test byte [edi + 0x18], 0x10
je 0x4a6b96
push 0x1000
call fcn.00456d95
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a6902
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
mov byte [ebx], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4a692e
push eax
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push 0x4e9c50
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push 0x4e9c54
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4a6983
lea ecx, [esp + 0x10]
push ecx
push 0x1000
push ebx
mov byte [esp + 0x41b], 0
call fcn.0045753a
add esp, 0xc
push 0x4e9c58
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push 0x400
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4a6a14
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a69a8
sub eax, edx
lea ecx, [esp + eax + 0xf]
lea eax, [esp + 0x10]
cmp ecx, eax
jb 0x4a69dc
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, 0x5c
je 0x4a69d9
cmp al, 0x2f
je 0x4a69d9
cmp al, 0x3a
je 0x4a69d9
dec ecx
lea edx, [esp + 0x10]
cmp ecx, edx
jae 0x4a69c0
jmp 0x4a69dc
mov byte [ecx], 0
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a69e3
sub eax, edx
je 0x4a6a14
lea eax, [esp + 0x10]
push eax
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push 0x4e9c5c
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x400
lea ecx, [esp + 0x14]
push ecx
push str._NT_SYMBOL_PATH
call esi
test eax, eax
je 0x4a6a5d
lea edx, [esp + 0x10]
push edx
push 0x1000
push ebx
mov byte [esp + 0x41b], 0
call fcn.0045753a
add esp, 0xc
push 0x4e9c70
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push 0x400
lea eax, [esp + 0x14]
push eax
push str._NT_ALTERNATE_SYMBOL_PATH
call esi
test eax, eax
je 0x4a6aa0
lea ecx, [esp + 0x10]
push ecx
push 0x1000
push ebx
mov byte [esp + 0x41b], 0
call fcn.0045753a
add esp, 0xc
push 0x4e9c90
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push 0x400
lea edx, [esp + 0x14]
push edx
push str.SYSTEMROOT
call esi
test eax, eax
je 0x4a6b20
lea eax, [esp + 0x10]
push eax
push 0x1000
push ebx
mov byte [esp + 0x41b], 0
call fcn.0045753a
add esp, 0xc
push 0x4e9ca0
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push str._system32
lea ecx, [esp + 0x14]
push 0x400
push ecx
call fcn.0045753a
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push 0x4e9cb0
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
test byte [edi + 0x18], 0x10
je 0x4a6b96
push 0x400
lea eax, [esp + 0x14]
push eax
push str.SYSTEMDRIVE
call esi
test eax, eax
je 0x4a6b83
push str.SRV
push 0x1000
push ebx
mov byte [esp + 0x41b], 0
call fcn.0045753a
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push str.websymbols
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
push str.http:__msdl.microsoft.com_download_symbols_
jmp 0x4a6b88
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
push 0x1000
push ebx
call fcn.0045753a
add esp, 0xc
mov esi, dword [edi + 4]
push ebx
call fcn.00438cb0
mov esi, eax
test ebx, ebx
je 0x4a6bae
push ebx
call fcn.00456d5b
add esp, 4
test esi, esi
jne 0x4a6be4
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push esi
push esi
push esi
push str.Error_while_initializing_dbghelp.dll
mov ecx, edi
call eax
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 8]
mov esi, dword [edi + 4]
mov edx, dword [edi + 0xc]
push esi
mov ecx, ebx
call fcn.00439050
test eax, eax
je 0x4a6c00
mov eax, 1
jmp 0x4a6c0a
push esi
call fcn.004391f0
test eax, eax
je 0x4a6c11
mov dword [edi + 0x10], 1
mov ecx, dword [esp + 0x414]
pop esi
pop ebx
xor ecx, esp
call fcn.00453be1
mov esp, ebp
pop ebp
ret