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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1404
call fcn.0060f180
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp dword [eax + 4], esi
push edi
jne 0x535762
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x535b97
cmp byte [eax + 0x10], 0
je 0x53576f
mov al, 1
jmp 0x535b97
test byte [eax + 0x24], 0x10
mov byte [esp + 0x410], 0
je 0x535b54
mov ecx, dword [eax + 0x14]
cmp ecx, esi
mov edi, 0x1000
mov ebx, 0x6586e0
je 0x5357cb
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x535797
sub eax, esi
mov esi, eax
push esi
push ecx
lea eax, [esp + 0x418]
push edi
push eax
call fcn.005fac67
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [esp + esi + 0x42c]
push eax
call fcn.005fac67
add esp, 0x20
inc esi
push 2
mov eax, edi
sub eax, esi
push 0x67aa88
push eax
lea eax, [esp + esi + 0x41c]
push eax
call fcn.005fac67
add esp, 0x10
lea eax, [esp + 0x10]
push eax
inc esi
push 0x400
inc esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x53584e
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x53580c
sub eax, ecx
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + esi + 0x41c]
push eax
call fcn.005fac67
add esi, dword [esp + 0x1c]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [esp + esi + 0x42c]
push eax
call fcn.005fac67
add esp, 0x20
inc esi
push 0x400
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x5358f5
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535877
sub eax, edx
lea eax, [esp + eax + 0xf]
jmp 0x535898
mov cl, byte [eax]
cmp cl, 0x5c
je 0x5358a2
cmp cl, 0x2f
je 0x5358a2
cmp cl, 0x3a
je 0x5358a2
dec eax
lea ecx, [esp + 0x10]
cmp eax, ecx
jae 0x535886
jmp 0x5358a5
mov byte [eax], 0
cmp byte [esp + 0x10], 0
je 0x5358f5
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5358b3
sub eax, edx
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + esi + 0x41c]
push eax
call fcn.005fac67
add esi, dword [esp + 0x1c]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [esp + esi + 0x42c]
push eax
call fcn.005fac67
add esp, 0x20
inc esi
push 0x400
lea eax, [esp + 0x14]
push eax
push str._NT_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x53595f
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x53591d
sub eax, ecx
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + esi + 0x41c]
push eax
call fcn.005fac67
add esi, dword [esp + 0x1c]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [esp + esi + 0x42c]
push eax
call fcn.005fac67
add esp, 0x20
inc esi
push 0x400
lea eax, [esp + 0x14]
push eax
push str._NT_ALTERNATE_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x5359c9
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x535987
sub eax, ecx
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + esi + 0x41c]
push eax
call fcn.005fac67
add esi, dword [esp + 0x1c]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [esp + esi + 0x42c]
push eax
call fcn.005fac67
add esp, 0x20
inc esi
push 0x400
lea eax, [esp + 0x14]
push eax
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x535a82
lea eax, [esp + 0x10]
mov byte [esp + 0x40f], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5359f5
sub eax, ecx
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + esi + 0x41c]
push eax
call fcn.005fac67
add esi, dword [esp + 0x1c]
push 1
mov eax, edi
sub eax, esi
push ebx
push eax
lea eax, [esp + esi + 0x42c]
push eax
call fcn.005fac67
lea eax, [esp + 0x30]
add esp, 0x20
inc esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x535a3e
sub eax, ecx
mov ebx, eax
push ebx
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + esi + 0x41c]
push eax
call fcn.005fac67
push 0xa
add esi, ebx
mov eax, edi
sub eax, esi
push str._system32_
push eax
lea eax, [esp + esi + 0x42c]
push eax
call fcn.005fac67
add esp, 0x20
add esi, 0xa
mov eax, dword [ebp + 8]
test byte [eax + 0x24], 0x10
je 0x535b54
push 0x400
lea eax, [esp + 0x14]
push eax
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x535b37
push 4
mov eax, edi
sub eax, esi
push str.SRV
push eax
lea eax, [esp + esi + 0x41c]
push eax
mov byte [esp + 0x41f], 0
call fcn.005fac67
lea eax, [esp + 0x20]
add esp, 0x10
add esi, 4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x535ada
sub eax, ecx
mov ebx, eax
push ebx
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + esi + 0x41c]
push eax
call fcn.005fac67
push 0xb
add esi, ebx
mov eax, edi
sub eax, esi
push str.websymbols
push eax
lea eax, [esp + esi + 0x42c]
push eax
call fcn.005fac67
push 0x2c
add esi, 0xb
push str.http:__msdl.microsoft.com_download_symbols_
sub edi, esi
lea eax, [esp + esi + 0x438]
push edi
push eax
call fcn.005fac67
add esp, 0x30
jmp 0x535b51
push 0x3d
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
sub edi, esi
lea eax, [esp + esi + 0x418]
push edi
push eax
call fcn.005fac67
add esp, 0x10
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
lea ecx, [esp + 0x410]
push ecx
call fcn.005351c6
test al, al
je 0x535750
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov ebx, dword [esi + 4]
push eax
push edi
push ebx
call fcn.0053538e
test al, al
je 0x535b88
mov al, 1
jmp 0x535b93
push edi
push ebx
call fcn.0053549a
test al, al
je 0x535b97
mov byte [esi + 0x10], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4