Function at 0x42f4b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x834
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x830], eax
mov eax, dword [esp + 0x838]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0x410
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x2c], 0x1000
xor esi, esi
test ebp, ebp
jne 0x42f51d
mov ecx, dword [esp + esi*4 + 0x24]
push ebx
push ebp
push ecx
call edi
inc esi
mov ebp, eax
cmp esi, 3
jb 0x42f4f7
test ebp, ebp
jne 0x42f51d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x42f701
push 0x544f2c
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x42f6d8
push str.ZwQueryInformationProcess
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x42f6ca
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x1b
push ebp
mov dword [esp + 0x2c], 0
call esi
cmp eax, 0xc0000004
jne 0x42f6ca
mov eax, dword [esp + 0x18]
push eax
call fcn.004ed893
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
push edi
push 0x1b
push ebp
mov dword [esp + 0x30], edi
call esi
test eax, eax
jne 0x42f6c1
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push eax
push 0x104
push ecx
mov byte [esp + 0x1f], 1
call fcn.004ee6af
add esp, 0xc
lea eax, [esp + 0x440]
push eax
xor edx, edx
push 0x1ff
mov word [esp + 0x448], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42f6c1
mov ecx, dword [0x54c500]
mov dx, word [0x54c504]
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
lea edi, [esp + 0x440]
xor bl, bl
lea esp, [esp]
mov ax, word [edi]
push 0x104
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
mov word [esp + 0x30], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42f6a0
lea eax, [esp + 0x30]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f630
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x42f6a0
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004f0a52
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x42f6a0
mov edx, dword [esp + 0x14]
lea eax, [edx + esi*2]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x240]
push str._s_s
push edx
call fcn.00411b10
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x248]
push eax
push 0x104
push ecx
call fcn.004ee6af
add esp, 0x1c
mov edi, edi
mov dx, word [edi]
add edi, 2
test dx, dx
jne 0x42f6a0
test bl, bl
jne 0x42f6b9
cmp word [edi], 0
jne 0x42f600
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push edi
call fcn.004ed7b6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [esp + 0x13], 0
jne 0x42f6f8
mov eax, dword [esp + 0x14]
push 0x104
xor ecx, ecx
push eax
push ecx
push ebp
mov word [eax], cx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x42f6f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x840]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ecddb
add esp, 0x834
ret