Function at 0x401700
Capabilities:
Get common file path
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor edi, edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x14]
push ecx
push edi
push edi
lea edx, [ebp - 0x1e4]
push edx
mov byte [ebp - 0x1e1], 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 4
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 4
cmp eax, edi
jne 0x401768
mov dword [ebp - 0xc], edi
jmp 0x40176d
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 6
call section..text
add esp, 8
cmp dword [ebp - 0xc], edi
jle 0x401791
mov eax, dword [ebp - 0x10]
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0xe4]
mov ebx, 0x9c
push ecx
mov dword [ebp - 0xe4], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
cmp eax, edi
jne 0x4017c3
mov dword [ebp - 0xc], edi
jmp 0x4017d4
push ebx
lea edx, [ebp - 0xe4]
push edx
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push 7
call section..text
add esp, 8
cmp dword [ebp - 0xc], edi
jle 0x4017fc
mov ecx, dword [ebp - 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
lea edx, [ebp - 8]
neg eax
push 4
push edx
lea esi, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.004010c0
call fcn.004041c0
movzx eax, al
lea ecx, [ebp - 8]
push 4
push ecx
mov dword [ebp - 8], eax
call fcn.004010c0
add esp, 0x10
lea edx, [ebp - 8]
push edx
push 8
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40187c
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0x14
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401872
cmp dword [ebp - 0x18], edi
jne 0x401872
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, bl
lea edx, [ebp - 8]
push 4
push edx
lea esi, [ebp - 0x10]
mov dword [ebp - 8], ecx
call fcn.004010c0
add esp, 8
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
jne 0x4018b7
xor al, al
jmp 0x4018d2
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x4018cc
xor al, al
jmp 0x4018d2
cmp dword [ebp - 8], edi
setne al
movzx ecx, al
lea edx, [ebp - 8]
push 4
push edx
lea esi, [ebp - 0x10]
mov dword [ebp - 8], ecx
call fcn.004010c0
add esp, 8
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test byte [ebp - 0x40], 0xf
jne 0x4018fd
xor al, al
jmp 0x4018ff
mov al, 1
movzx ecx, al
lea edx, [ebp - 8]
push 4
push edx
lea esi, [ebp - 0x10]
mov dword [ebp - 8], ecx
call fcn.004010c0
mov eax, esi
push eax
mov eax, dword [ebp + 8]
push 8
call section..text
add esp, 0x10
cmp dword [ebp - 0xc], edi
jle 0x40193a
mov ecx, dword [ebp - 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret