Function at 0x470790
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24c], ecx
push 0x4bfcd0
mov ecx, dword [ebp + 0xc]
call fcn.00472780
push 0x20a
push 0
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x4707ea
jmp 0x470a71
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x470808
jmp 0x470a71
mov eax, dword [ebp - 0x21c]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ae031
add esp, 4
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x21c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x228]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x47089a
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
push eax
call fcn.004add76
add esp, 4
jmp 0x470a71
mov ecx, dword [0x4bfcd4]
mov dword [ebp - 0xc], ecx
mov dx, word [0x4bfcd8]
mov word [ebp - 8], dx
push 0x208
call fcn.004ae031
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x224], ecx
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x224]
mov dx, word [ecx]
mov word [ebp + eax - 0xc], dx
push 0x104
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4709a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x470928
jmp 0x470a3b
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
push eax
call fcn.004add76
add esp, 4
mov eax, dword [ebp - 0x21c]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ae031
add esp, 4
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x21c]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4709a6
jmp 0x470a3b
mov ecx, dword [ebp - 0x220]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x470a01
mov edx, dword [ebp - 0x21c]
lea eax, [ebp + edx*2 - 0x218]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x4bfcdc
mov edx, dword [ebp + 0xc]
push edx
call fcn.0045ed20
add esp, 0x10
jmp 0x470a3b
mov eax, dword [ebp - 0x224]
movzx ecx, word [eax]
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x224]
add edx, 2
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x240], 0
je 0x470a2a
jmp 0x470a01
mov eax, dword [ebp - 0x224]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4708d9
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.004add76
add esp, 4
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x248]
push edx
call fcn.004add76
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 8