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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x420], ecx
mov eax, dword [ebp - 0x420]
cmp dword [eax + 4], 0
jne 0x576627
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x576a72
mov ecx, dword [ebp - 0x420]
cmp dword [ecx + 0x10], 0
je 0x57663d
mov eax, 1
jmp 0x576a72
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x420]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x5769d6
mov dword [ebp - 0x418], 0x1000
push 0x1000
call fcn.004981df
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x576685
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x576a72
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
mov edx, dword [ebp - 0x420]
cmp dword [edx + 0x14], 0
je 0x5766c8
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 0x14]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.0049bb59
add esp, 0xc
push 0x5fd8d4
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.0049bb59
add esp, 0xc
push 0x5fd8d8
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049bb59
add esp, 0xc
mov dword [ebp - 0x414], 0x400
lea edx, [ebp - 0x410]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x576730
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049bb59
add esp, 0xc
push 0x5fd8dc
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.0049bb59
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x576805
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.00496050
add esp, 4
lea edx, [ebp + eax - 0x411]
mov dword [ebp - 0x41c], edx
jmp 0x57677d
mov eax, dword [ebp - 0x41c]
sub eax, 1
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
lea edx, [ebp - 0x410]
cmp ecx, edx
jb 0x5767c4
mov eax, dword [ebp - 0x41c]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x5767b7
mov edx, dword [ebp - 0x41c]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x5767b7
mov ecx, dword [ebp - 0x41c]
movsx edx, byte [ecx]
cmp edx, 0x3a
jne 0x5767c2
mov eax, dword [ebp - 0x41c]
mov byte [eax], 0
jmp 0x5767c4
jmp 0x57676e
lea ecx, [ebp - 0x410]
push ecx
call fcn.00496050
add esp, 4
test eax, eax
jbe 0x576805
lea edx, [ebp - 0x410]
push edx
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.0049bb59
add esp, 0xc
push 0x5fd8e0
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049bb59
add esp, 0xc
push 0x400
lea edx, [ebp - 0x410]
push edx
push str._NT_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x576852
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049bb59
add esp, 0xc
push 0x5fd8f4
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.0049bb59
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
push str._NT_ALTERNATE_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x57689f
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x410]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.0049bb59
add esp, 0xc
push 0x5fd914
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.0049bb59
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x576933
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x410]
push edx
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.0049bb59
add esp, 0xc
push 0x5fd924
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049bb59
add esp, 0xc
push str._system32
push 0x400
lea edx, [ebp - 0x410]
push edx
call fcn.0049bb59
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049bb59
add esp, 0xc
push 0x5fd934
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.0049bb59
add esp, 0xc
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x5769d6
push 0x400
lea edx, [ebp - 0x410]
push edx
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x5769c0
mov byte [ebp - 0x11], 0
push str.SRV
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.0049bb59
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.0049bb59
add esp, 0xc
push str.websymbols
push 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.0049bb59
add esp, 0xc
push str.http:__msdl.microsoft.com_download_symbols_
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049bb59
add esp, 0xc
jmp 0x5769d6
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
push 0x1000
mov edx, dword [ebp - 8]
push edx
call fcn.0049bb59
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x420]
mov ecx, dword [ecx + 4]
call fcn.0044d380
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x5769fd
mov edx, dword [ebp - 8]
push edx
call fcn.00496008
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
jne 0x576a37
push 0
push 0
push 0
push str.Error_while_initializing_dbghelp.dll
mov eax, dword [ebp - 0x420]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x420]
mov eax, dword [edx + 0x10]
call eax
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x576a72
mov ecx, dword [ebp - 0x420]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x420]
mov ecx, dword [edx + 4]
call fcn.0044de30
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x576a6f
mov eax, dword [ebp - 0x420]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret