Function at 0x42aed0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push edi
mov word [ecx], ax
push ebx
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x260]
push eax
call fcn.004260eb
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x44dcf0
xor esi, esi
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x42afd4
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push ebx
call edi
test eax, eax
jne 0x42afd4
push esi
push esi
push 3
push esi
push 3
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x42afef
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 9
pop ecx
push esi
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x28
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x700a0
push dword [ebp + 8]
call ebx
test eax, eax
je 0x42af9c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
jmp 0x42b02c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42b08c
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x70000
push dword [ebp + 8]
call ebx
jmp 0x42b064
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x42aff6
xor eax, eax
jmp 0x42b0df
push esi
xor eax, eax
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
mov ebx, 0x1f40
push ebx
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push 0x7405c
push dword [ebp + 8]
call fcn.0043ffbf
test eax, eax
je 0x42b031
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
jmp 0x42b08c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42b08c
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x70000
push dword [ebp + 8]
call fcn.0043ffbf
test eax, eax
je 0x42b08c
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x14]
push esi
push dword [ebp - 0x1c]
push edx
push eax
call fcn.0044b1a9
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edx
push eax
call fcn.0044b1a9
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42b0c6
cmp dword [ebp - 4], esi
jne 0x42b0c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x42b0c6
cmp dword [ebp - 0x10], 2
je 0x42b0bc
push 5
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], eax
jne 0x42b0c3
mov dword [ebp - 8], 6
mov dword [ebp - 4], esi
mov edi, dword [ebp + 0xc]
push 1
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041b8b8
xor eax, eax
cmp word [edi], si
setne al
pop edi
pop esi
pop ebx
leave
ret 8