Function at 0x402e40
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4ce549
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4f87d8]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x104]
xor ebx, ebx
mov edi, 7
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x100], 1
mov dword [esp + 0x30], 0xa9a11800
mov dword [esp + 0x34], 0xd
call fcn.004197f0
add esp, 4
test al, al
je 0x4030e5
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xc4], bl
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
mov byte [esp + 0xfc], 3
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x402f79
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jne 0x402f9c
lea esi, [esp + 0x5c]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
mov byte [esp + 0xfc], 1
call fcn.00421ed0
jmp 0x4030e5
ja 0x402fa7
call fcn.004a8d14
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x18], 8
jb 0x402fb2
mov esi, dword [esi + 4]
jmp 0x402fb5
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x402fd7
cmp dword [esp + 0x58], 8
jb 0x402f79
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004a85e6
add esp, 4
jmp 0x402f79
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x402ffa
mov esi, dword [esp + 0x20]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x403003
call fcn.004a8d14
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x5c]
push edx
call fcn.004199b0
add esp, 4
test al, al
jne 0x403031
cmp dword [esp + 0x58], 8
jb 0x402f79
mov eax, dword [esp + 0x44]
push eax
call fcn.004a85e6
add esp, 4
jmp 0x402f79
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
mov edx, eax
or edx, ecx
je 0x40304d
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov esi, 8
cmp dword [esp + 0x58], esi
jb 0x403065
mov eax, dword [esp + 0x44]
push eax
call fcn.004a85e6
add esp, 4
mov byte [esp + 0xfc], 1
cmp dword [esp + 0xac], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
jb 0x403093
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004a85e6
add esp, 4
cmp dword [esp + 0x90], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
jb 0x4030bf
mov edx, dword [esp + 0x7c]
push edx
call fcn.004a85e6
add esp, 4
cmp dword [esp + 0x74], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
jb 0x4030e5
mov eax, dword [esp + 0x60]
push eax
call fcn.004a85e6
add esp, 4
push 0x73
lea eax, [ebp + 0x24]
call fcn.0044e120
mov esi, eax
cmp esi, ebx
je 0x40312f
mov edx, dword [esi]
mov edx, dword [edx + 0x170]
lea eax, [ebp + 0x250]
push eax
mov ecx, esi
call edx
or eax, 0xffffffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x2e0]
push ebx
push 0x437
mov ecx, esi
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, ebp
call fcn.004033d0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403166
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push ecx
call fcn.00406290
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.004a85e6
add esp, 4
cmp dword [esp + 0xe8], 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jb 0x40318c
mov eax, dword [esp + 0xd4]
push eax
call fcn.004a85e6
add esp, 4
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a85d7
add esp, 0xec
ret 4