Function at 0x44377f
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
movzx ecx, word [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x10]
sar ebx, 0x10
xor eax, eax
push esi
and ebx, 0xffdf
test cl, 1
push edi
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x14], eax
je 0x4437b8
test cl, 8
je 0x4437b8
and dword [ebp + 0x10], 0xfffffff7
mov dword [ebp - 0x14], 8
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0xc], eax
jne 0x4437d3
push 0x100000
lea ecx, [ebp - 0xc]
call fcn.00433b3f
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x4964ec
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x1b
add eax, 4
pop edx
and word [eax + 4], 0
or ecx, 0xffffffff
mov word [eax + 2], cx
mov word [eax], cx
mov word [eax - 4], cx
mov word [eax - 2], cx
add eax, 0xa
dec edx
jne 0x4437f3
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp bx, 0x61
mov dword [ebp - 0x20], eax
jb 0x44382b
cmp bx, 0x7a
ja 0x44382b
add ebx, 0xffe0
xor edi, edi
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 0x10], 0x19
jb 0x44384b
cmp bx, 0x5a
ja 0x44384b
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
movsx esi, ax
jmp 0x443a77
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x20]
test ecx, eax
je 0x443a70
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, 0x41
lea ecx, [esi + esi*4]
lea ebx, [edx + ecx*2]
mov word [ebp - 0x44], ax
mov word [ebx + 8], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov dword [ebp - 0x18], eax
je 0x4438b7
cmp eax, 2
je 0x4438b7
xor dl, dl
or word [ebx + 8], 0xc000
mov word [ebx], di
cmp eax, 1
je 0x443a70
mov ecx, dword [ebp + 0x10]
cmp ecx, 8
jne 0x4438bb
cmp eax, 5
jmp 0x443913
mov dl, 1
jmp 0x4438a1
cmp ecx, 0x10
jne 0x4438cb
cmp eax, 2
jne 0x443a70
jmp 0x4438eb
cmp ecx, 4
je 0x4438e6
test dl, dl
jne 0x4438e6
cmp dword [ebp - 0x14], edi
je 0x443a70
cmp eax, 5
jne 0x443a70
cmp eax, 2
jne 0x443919
cmp word [ebp - 8], 1
jg 0x443919
lea eax, [esi*4 + 0x4a7210]
cmp dword [eax], edi
je 0x443919
cmp ecx, 0x10
movsx eax, word [eax]
jne 0x443910
cmp eax, 0xb
je 0x443a70
jmp 0x443919
cmp eax, 0xb
jne 0x443a70
push edi
push 0x20000000
push 3
push edi
push 3
push 0x80000000
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.004041e7
cmp dword [ebp - 4], edi
je 0x443a68
cmp dword [ebp - 0x18], 2
jne 0x44396f
push esi
push 1
push edi
push dword [ebp - 4]
call fcn.004384dd
add esp, 0x10
cmp dword [ebp + 0x10], 0x10
jne 0x443966
cmp eax, 0xb
jne 0x44396f
jmp 0x443a68
cmp eax, 0xb
jne 0x443a68
mov esi, dword [ebp + 0xc]
push 0x90
push edi
push esi
mov dword [ebp - 0x204], edi
call fcn.0047b210
or dword [esi + 0x18], 0xffffffff
add esp, 0xc
push edi
lea eax, [ebp - 0x204]
push eax
push 0x90
push esi
push edi
push edi
push 0x70048
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [ebp + 0x10], 0x10
jne 0x4439bd
cmp eax, edi
je 0x4439bd
cmp word [esi + 0x18], di
jge 0x443a68
cmp eax, edi
mov cx, word [ebx]
mov word [ebp - 0x1c], cx
je 0x4439d0
mov ax, word [esi + 0x18]
mov word [ebp - 0x1c], ax
push edi
mov dword [ebp - 0x204], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [esi + 4], 0xffffffff
push edi
lea eax, [ebp - 0x204]
push eax
push 0xc
push esi
push edi
push edi
push 0x2d1080
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
je 0x443a37
cmp dword [ebp - 0x18], 5
jne 0x443a37
cmp eax, edi
je 0x443a68
push 0x490708
push edi
lea eax, [ebp - 0x74]
push eax
movzx eax, word [esi + 4]
push eax
mov word [ebp - 0x74], di
call fcn.00437e5e
add esp, 0x10
cmp word [ebp - 0x74], di
je 0x443a68
mov ax, word [ebp - 0x44]
mov word [ebx + 8], ax
cmp dword [ebp - 0x24], edi
mov ax, word [ebp - 0x1c]
mov word [ebx], ax
je 0x443a4b
mov ax, word [esi + 4]
mov word [ebx + 2], ax
cmp dword [ebp + 0x10], 4
jne 0x443a60
push dword [ebp - 4]
push edi
call fcn.004356fc
pop ecx
pop ecx
mov word [ebx + 6], ax
mov ax, word [ebp - 0x18]
mov word [ebx + 4], ax
lea ecx, [ebp - 4]
call fcn.00402ac9
inc dword [ebp - 8]
movsx esi, word [ebp - 8]
cmp esi, dword [ebp - 0x10]
jle 0x443856
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xc]
call fcn.0042eb98
pop edi
pop esi
pop ebx
leave
ret