Function at 0x42f630
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x604e32
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x20]
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
cmp dword [edi + 0xc], esi
jbe 0x42f67e
call fcn.005c475a
mov ebx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
cmp ebx, dword [edi + 0x10]
jbe 0x42f691
call fcn.005c475a
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
push esi
push ecx
push ebx
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00430450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x42f770
xor eax, eax
push eax
lea ebx, [edi + 1]
lea esi, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
call fcn.00430320
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x48]
mov esi, 8
cmp dword [esp + 0x5c], esi
jae 0x42f6f6
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42f742
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x6d0810
call fcn.0040b990
mov byte [esp + 0x70], 1
cmp dword [esp + 0x5c], esi
jb 0x42f726
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
jmp 0x42f730
lea edx, [esp + 0x48]
mov dword [esp + 0x18], edx
mov edi, edx
cmp word [edi], bx
jne 0x42f794
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x14]
call fcn.0040ba40
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x5c], esi
jb 0x42f75d
mov ecx, dword [esp + 0x48]
push ecx
call fcn.005c396f
add esp, 4
xor edx, edx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005c397a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
xor eax, eax
push ebx
mov ebx, 0x105
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
call fcn.00430320
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
movzx ebx, word [edi]
test esi, esi
jle 0x42f929
cmp dword [eax - 4], 1
jle 0x42f7e4
mov ecx, esi
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040de10
mov eax, dword [esp + 0x14]
mov word [eax], bx
test esi, esi
jl 0x42f929
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x42f929
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
xor eax, eax
mov word [ecx + esi*2], ax
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x42f81c
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x14]
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42f8cb
lea eax, [esp + 0x1c]
push eax
call fcn.004af7e0
mov byte [esp + 0x70], 3
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f850
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x24]
call fcn.0040fac0
cmp dword [esp + 0x40], esi
jb 0x42f87d
mov eax, dword [esp + 0x2c]
mov edx, eax
test eax, eax
jne 0x42f881
jmp 0x42f895
lea edx, [esp + 0x2c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f886
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x20]
call fcn.0040fac0
lea edi, [esp + 0x1c]
call fcn.0040bd70
mov ebx, edi
mov edi, dword [esp + 0x24]
call fcn.004302b0
mov byte [esp + 0x70], 2
mov ecx, ebx
push ecx
call fcn.0043ffb0
mov edi, dword [esp + 0x18]
mov esi, 8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f8d0
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
mov dword [esp + 0x18], edi
mov byte [esp + 0x70], 1
cmp dword [esp + 0x40], esi
jb 0x42f8ff
mov edx, dword [esp + 0x2c]
push edx
call fcn.005c396f
add esp, 4
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [edi], bx
jne 0x42f790
lea esi, [eax + 8]
jmp 0x42f735
push 0x80070057
call fcn.00403d10
int3