Function at 0x42a7ca
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x477edc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x244]
push edi
mov edi, dword [ebp + 8]
push esi
call fcn.00415a93
lea eax, [ebp - 0x244]
push eax
call fcn.0042a219
pop ecx
lea ecx, [ebp - 0x244]
mov bl, al
call fcn.0041181b
test bl, bl
je 0x42a817
mov al, 1
jmp 0x42ab7c
xor eax, eax
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
xor ebx, ebx
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x24c], ebx
push eax
push edi
call fcn.00429d78
pop ecx
pop ecx
test al, al
je 0x42ab25
push esi
lea ecx, [ebp - 0x22c]
call fcn.00415a93
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x22c]
push 8
pop esi
cmp dword [ebp - 0x218], esi
cmovae eax, dword [ebp - 0x22c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x42a91f
xor eax, eax
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], ax
lea eax, [ecx - 1]
push eax
push ebx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 7
push eax
lea ecx, [ebp - 0x244]
call fcn.0041ec78
mov byte [ebp - 0x260], bl
lea eax, [ebp - 0x244]
push dword [ebp - 0x260]
lea ecx, [ebp - 0x22c]
push eax
call fcn.00413fd1
mov eax, dword [ebp - 0x230]
cmp eax, esi
jb 0x42a91f
mov ecx, dword [ebp - 0x244]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], ecx
cmp eax, 0x1000
jb 0x42a916
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00411710
mov eax, dword [ebp - 0x264]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x260]
push eax
push ecx
call fcn.00455eef
pop ecx
pop ecx
cmp dword [ebp - 0x218], esi
lea ecx, [ebp - 0x22c]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea eax, [ebp - 0x25c]
cmovae ecx, dword [ebp - 0x22c]
cmp dword [ebp - 0x248], esi
push ecx
cmovae eax, dword [ebp - 0x25c]
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x42ab18
lea eax, [ebp - 0x22c]
push eax
push eax
call fcn.0042a156
mov byte [ebp - 0x265], al
lea eax, [ebp - 0x22c]
push eax
call fcn.0042ab8b
add esp, 0xc
test al, al
jne 0x42aa52
cmp byte [ebp - 0x265], bl
je 0x42ab1a
xor eax, eax
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x230], 7
push eax
call fcn.0042a093
pop ecx
pop ecx
test al, al
je 0x42a9f5
cmp dword [ebp - 0x218], esi
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], esi
push ecx
cmovae eax, dword [ebp - 0x244]
push eax
call edi
neg eax
pop ecx
sbb al, al
inc al
pop ecx
mov bl, al
mov eax, dword [ebp - 0x230]
cmp eax, esi
jb 0x42ab1a
mov ecx, dword [ebp - 0x244]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], ecx
cmp eax, 0x1000
jb 0x42aa44
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00411710
mov eax, dword [ebp - 0x260]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
push eax
push ecx
call fcn.00455eef
pop ecx
pop ecx
jmp 0x42ab1a
cmp dword [ebp - 0x218], esi
lea eax, [ebp - 0x22c]
xorps xmm0, xmm0
mov esi, 0x104
cmovae eax, dword [ebp - 0x22c]
movlpd qword [ebp - 0xc], xmm0
push esi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x42ab1a
cmp eax, esi
je 0x42ab1a
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x42aaa3
mov eax, dword [ebp - 0x21c]
sub esi, ecx
sar esi, 1
add eax, 0xfffffffe
add eax, esi
cmp eax, dword [ebp - 0x24c]
jne 0x42ab1a
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00429ce8
add esp, 0xc
test al, al
je 0x42ab1a
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x248], 8
cmovae ecx, dword [ebp - 0x25c]
add eax, 4
push eax
lea eax, [ecx + esi*2]
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x42ab1a
mov bl, 1
lea ecx, [ebp - 0x22c]
call fcn.0041181b
mov eax, dword [ebp - 0x248]
cmp eax, 8
jb 0x42ab7a
mov ecx, dword [ebp - 0x25c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], ecx
cmp eax, 0x1000
jb 0x42ab71
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00411710
mov eax, dword [ebp - 0x260]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
push eax
push ecx
call fcn.00455eef
pop ecx
pop ecx
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455cf4
leave
ret