Function at 0x43979c
Capabilities:
Get disk information
Get disk information via ioctl
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x870
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x868], eax
lea eax, [esp + 0x20]
xor esi, esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax - 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00439643
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
lea edi, [esp + 0x68]
push 0x800
push esi
push edi
call fcn.006030b0
add esp, 0xc
push edi
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], esi
cmp eax, 0x7ffffff0
jae 0x439c33
mov ebx, eax
cmp eax, 5
jae 0x43982e
lea esi, [esp + 0x40]
mov byte [esi + 0xb], bl
mov eax, esi
mov ecx, esi
test ebx, ebx
jne 0x43985c
jmp 0x439871
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x439c3c
lea eax, [edi + edi]
push eax
call fcn.00517b56
add esp, 4
lea esi, [esp + 0x40]
mov dword [esi], eax
or edi, 0x80000000
mov dword [esi + 8], edi
mov dword [esi + 4], ebx
lea edi, [esp + 0x68]
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov edi, eax
call fcn.006025b0
mov eax, edi
add esp, 0xc
mov ecx, esi
mov word [eax + ebx*2], 0
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 4], ecx
mov eax, ecx
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x43989b
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub esp, 0x1c
movaps xmm0, xmmword [0x64a230]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
lea ebx, [esp + 0x78]
mov dword [esp], ebx
call fcn.00479220
add esp, 0x1c
lea esi, [esp + 0x34]
mov ecx, esi
call fcn.00405ee6
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov ecx, ebx
call fcn.00403fbe
mov eax, dword [esi]
cmp dword [esi + 4], eax
je 0x4399fa
xor ecx, ecx
inc ecx
lea esi, [esp + 0x28]
xor edi, edi
xor ebx, ebx
test ecx, ecx
je 0x4399d9
movzx edx, byte [eax + edi + 0xb]
test dl, dl
jns 0x43991b
mov edx, dword [eax + edi + 4]
mov eax, dword [eax + edi]
jmp 0x43991d
add eax, edi
mov ecx, esi
push edx
push eax
call fcn.0046ed80
mov eax, esi
lea esi, [esp + 0x5c]
mov ecx, esi
push eax
call fcn.0046ed40
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov ecx, esi
lea eax, [esp + 0x50]
push eax
call fcn.0046f0c0
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x54], eax
jne 0x439975
lea ecx, [esp + 0x50]
call fcn.00403fbe
mov ecx, esi
call fcn.0046ee40
lea esi, [esp + 0x28]
mov ecx, esi
call fcn.0046ee40
jmp 0x4399d9
cmp byte [eax + 0xb], 0
jns 0x43997d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
lea ecx, [esp + 0x50]
call fcn.00403fbe
lea ecx, [esp + 0x5c]
call fcn.0046ee40
lea ecx, [esp + 0x28]
call fcn.0046ee40
cmp esi, 3
lea esi, [esp + 0x28]
jne 0x4399d9
mov eax, dword [esp + 0x34]
add eax, edi
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
je 0x4399cb
mov ecx, esi
push eax
call fcn.00468aa8
add esi, 0xc
mov dword [esp + 0x14], esi
jmp 0x4399d5
lea ecx, [esp + 0x10]
push eax
call fcn.00404042
lea esi, [esp + 0x28]
inc ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov edx, ecx
sar edx, 2
imul edx, edx, 0xaaaaaaab
add edi, 0xc
cmp ebx, edx
jb 0x439901
lea ecx, [esp + 0x34]
call fcn.00403fbe
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
jns 0x439a19
push dword [esp + 0x40]
call fcn.00517bd6
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
je 0x439c08
xor edi, edi
mov dword [esp + 8], esi
lea ecx, [edi + edi*2]
movzx edx, byte [eax + ecx*4 + 0xb]
test dl, dl
mov dword [esp + 4], edi
mov dword [esp + 0xc], ecx
jns 0x439a4a
mov esi, dword [eax + ecx*4]
mov edx, dword [eax + ecx*4 + 4]
jmp 0x439a4d
lea esi, [eax + ecx*4]
lea edi, [esp + 0x68]
mov ecx, edi
push edx
push esi
call fcn.0046ed80
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov ecx, edi
lea eax, [esp + 0x5c]
push eax
call fcn.0046f0c0
mov esi, dword [esp + 0x5c]
cmp esi, dword [esp + 0x60]
je 0x439b57
lea ecx, [esp + 0x40]
push 0x64af7c
call fcn.00401a6c
movzx eax, byte [esi + 0xb]
test al, al
jns 0x439a9d
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov edi, dword [esp + 4]
lea ecx, [esp + 0x40]
push eax
push esi
call fcn.00468fc8
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x50], xmm0
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], ecx
cmp byte [esp + 0x4b], 0
jns 0x439ada
push dword [esp + 0x40]
call fcn.00517bd6
add esp, 4
cmp byte [esp + 0x5b], 0
lea eax, [esp + 0x50]
jns 0x439ae9
mov eax, dword [esp + 0x50]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x64a240]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x439b61
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x34], ecx
push ecx
lea eax, [esp + 0x38]
push eax
push 0xc
lea eax, [esp + 0x4c]
push eax
push ecx
push ecx
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
setne al
cmp dword [esp + 0x40], 7
sete bl
and bl, al
mov esi, dword [esp + 8]
je 0x439b65
mov esi, dword [esp + 0x44]
jmp 0x439b65
mov edi, dword [esp + 4]
mov esi, dword [esp + 8]
jmp 0x439b78
mov esi, dword [esp + 8]
cmp byte [esp + 0x5b], 0
jns 0x439b78
push dword [esp + 0x50]
call fcn.00517bd6
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.00403fbe
lea ecx, [esp + 0x68]
call fcn.0046ee40
test bl, bl
je 0x439bec
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x439bec
lea eax, [esp + 0x20]
xor edx, edx
cmp dword [ecx + 0x10], esi
setb dl
cmovae eax, ecx
mov ecx, dword [ecx + edx*4]
test ecx, ecx
jne 0x439b9a
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x439bec
cmp esi, dword [eax + 0x10]
jb 0x439bec
mov ebx, esi
mov edx, dword [esp + 0xc]
shl edx, 2
add edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 8]
je 0x439be4
mov ecx, esi
push edx
call fcn.00468aa8
add esi, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
jmp 0x439bea
push edx
call fcn.00404042
mov esi, ebx
inc edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, eax
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
cmp edi, ecx
jb 0x439a29
lea ecx, [esp + 0x10]
call fcn.00403fbe
lea ecx, [esp + 0x1c]
push dword [ecx + 4]
call fcn.0043c1a0
mov ecx, dword [esp + 0x868]
xor ecx, ebp
call fcn.00517c1a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x40]
call fcn.00467d64
call fcn.0061842c