Function at 0x4294d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa24
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
push edi
mov dword [ebp - 0xa18], ebx
xor edi, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4294f6
sub eax, edx
sar eax, 1
lea esi, [eax + eax]
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429510
sub eax, edx
sar eax, 1
cmp eax, 2
jbe 0x42952f
cmp word [ebx + 2], 0x3a
je 0x4297e8
cmp dword [0x456af0], edi
jne 0x4296ac
push esi
mov word [ebp - 0xa14], di
call fcn.0042e047
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4297e8
lea eax, [ebp - 0xa14]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x429697
mov ecx, dword [0x446b3c]
mov dx, word [0x446b40]
mov dword [ebp - 0xa1c], edi
lea edi, [ebp - 0xa14]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
mov dword [ebp - 0xa20], edi
jmp 0x4295a0
mov ax, word [edi]
push 0x104
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0xc]
push edx
mov word [ebp - 0xc], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x429674
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4295d0
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x429674
mov ecx, dword [ebp - 0xa18]
push esi
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0042f322
add esp, 0xc
test eax, eax
jne 0x429674
lea eax, [ebp - 0xc]
mov edx, ebx
mov ecx, eax
mov dword [ebp - 0xa1c], 1
sub edx, ecx
jmp 0x429620
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x429620
mov edx, dword [ebp - 0xa18]
lea eax, [edx + esi*2]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429640
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x429652
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0xa20]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x429674
cmp dword [ebp - 0xa1c], 0
mov dword [ebp - 0xa20], edi
jne 0x429697
cmp word [edi], ax
jne 0x4295a0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test edi, edi
je 0x4296bf
push edi
call fcn.0042df6a
add esp, 4
push esi
call fcn.0042e047
mov edi, eax
add esp, 4
test edi, edi
je 0x4297bc
mov eax, dword [ebp - 0xa18]
lea edx, [eax + 2]
jmp 0x4296e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4296e0
push 0
sub eax, edx
lea ecx, [ebp - 0xa24]
push ecx
mov ecx, dword [0x456af0]
push esi
sar eax, 1
push edi
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0xa18]
push edx
push eax
push 0x42280c
push ecx
call ebx
test eax, eax
jne 0x42984a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x429739
cmp eax, 0xea
je 0x429776
cmp eax, 0x5aa
jne 0x4297fd
mov eax, dword [0x44b008]
cmp eax, 0x44b008
je 0x4296b2
test byte [eax + 0x3c], 1
je 0x4296b2
cmp byte [eax + 0x39], 2
jb 0x4296b2
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x446a0c
push 0x2e
push ecx
push edx
call fcn.004170b0
jmp 0x4296b2
mov ecx, dword [ebp - 0xa24]
mov esi, ecx
mov eax, dword [0x44b008]
cmp eax, 0x44b008
je 0x4296b2
test byte [eax + 0x3c], 1
je 0x4296b2
cmp byte [eax + 0x39], 5
jb 0x4296b2
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
push ecx
push 0x446a0c
push 0x2d
push edx
push eax
call fcn.004198f0
jmp 0x4296b2
mov eax, dword [0x44b008]
cmp eax, 0x44b008
je 0x4297e8
test byte [eax + 0x3c], 1
je 0x4297e8
cmp byte [eax + 0x39], 2
jb 0x4297e8
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x446a0c
push 0x2c
push ecx
push edx
call fcn.004170b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x44b008]
cmp ecx, 0x44b008
je 0x42982c
test byte [ecx + 0x3c], 1
je 0x42982c
cmp byte [ecx + 0x39], 2
jb 0x42982c
push eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
push 0x446a0c
push 0x2f
push eax
push ecx
call fcn.004198f0
push edi
call fcn.0042df6a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x44b008]
cmp eax, 0x44b008
je 0x42987e
test byte [eax + 0x3c], 1
je 0x42987e
cmp byte [eax + 0x39], 5
jb 0x42987e
mov edx, dword [ebp - 0xa18]
mov ecx, dword [eax + 0x34]
push edx
mov edx, dword [eax + 0x30]
push edi
push 0x446a0c
push 0x30
push ecx
push edx
call fcn.004283c0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d845
mov esp, ebp
pop ebp
ret 4