Function at 0x4407a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ace00
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x30], esi
cmp dword [eax - 0xc], edi
je 0x440836
add eax, 0xfffffff0
call fcn.004046f0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], edi
cmp dword [ebx - 4], 1
jle 0x440800
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004021c0
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x44083d
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440836
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x440ae2
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00402120
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
cmp dword [ecx - 0xc], edi
jl 0x4408b7
push 0x4bd1d4
push ecx
call fcn.00493f13
mov ecx, dword [ebp - 0x24]
add esp, 8
cmp eax, edi
je 0x4408b7
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4408b7
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44089b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x44082a
mov dword [ebp - 0x20], 0x3a002f
mov dword [ebp - 0x1c], 0x3f002a
mov dword [ebp - 0x18], 0x3c0022
mov dword [ebp - 0x14], 0x7c003e
xor esi, esi
movzx eax, word [ebp + esi*2 - 0x20]
cmp dword [ecx - 0xc], edi
jle 0x4408f9
push eax
push ecx
call fcn.0049271d
mov ecx, dword [ebp - 0x24]
add esp, 8
cmp eax, edi
je 0x4408f9
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x440974
inc esi
cmp esi, 8
jb 0x4408d5
lea ecx, [ebp - 0x2c]
push ecx
push ecx
lea esi, [ebx - 0x10]
mov dword [ebp - 0x2c], edi
mov eax, esi
mov dword [ebp - 0x34], esp
mov edi, esp
call fcn.004046f0
add eax, 0x10
mov dword [edi], eax
call fcn.00422250
add esp, 8
test eax, eax
jne 0x44098d
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440949
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440836
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
jmp 0x440ae2
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x44088f
cmp dword [ebp - 0x2c], 0x64
jge 0x4409e1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4409b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440836
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
jmp 0x440ae2
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0xc8
jle 0x440a3d
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440a12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440836
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
jmp 0x440ae2
mov eax, ebx
lea edi, [ebp - 0x28]
call fcn.00404600
mov esi, dword [ebp - 0x28]
cmp dword [esi - 4], 1
jle 0x440a5f
mov eax, dword [esi - 0xc]
push eax
mov ecx, edi
push ecx
call fcn.004021c0
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x440a7b
push 0x80004005
call fcn.00402bc0
mov eax, dword [ebx]
push esi
push eax
call fcn.004924d8
add esp, 8
test eax, eax
jne 0x440a97
mov edx, 0x4bd17c
mov eax, ebx
call fcn.0040a4e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440aba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440add
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret