Function at 0x4491e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574a1a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5e1da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x38], edi
xor ebx, ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0xee6b2800
mov dword [ebp - 0x14], ebx
call fcn.00459d8e
mov eax, dword [edi + 0x24]
mov eax, dword [eax - 0xc]
lea ecx, [edi + 0x24]
add eax, 0xfffffffd
push eax
push ebx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], ebx
call fcn.004041c0
push 3
push 0x590460
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004107b0
call fcn.004587ad
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x44926e
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
push 3
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004056b0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402660
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4492bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x24], ebx
cmp eax, 5
je 0x4492eb
mov edx, dword [ebp - 0x18]
push ebx
push 0x3002
push edx
lea ecx, [ebp - 0x58]
call fcn.0045a397
cmp eax, 1
jne 0x4492eb
mov dword [ebp - 0x24], eax
push 0x1a8
call fcn.004575a4
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x44930f
push ebx
mov ecx, eax
call fcn.00455f80
mov esi, eax
jmp 0x449311
xor esi, esi
mov eax, dword [esi]
mov edx, dword [eax + 0x160]
push ebx
push 0x40b
mov ecx, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call edx
push 5
mov ecx, esi
call fcn.004649c9
mov ecx, dword [edi + 0x104c]
mov eax, dword [edi + 0x28]
mov edx, dword [eax + 0x2c]
push 0
push 0
push ecx
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 5
call edx
lea ecx, [ecx]
mov eax, dword [edi + 0x28]
mov edx, dword [eax + 0x38]
push 9
lea esi, [edi + 0x3c]
push esi
lea ecx, [edi + 0x28]
call edx
cmp eax, 9
jne 0x44947b
mov ecx, dword [edi + 0x1070]
cmp ecx, 0x1e
jl 0x44937c
mov edx, dword [esi]
mov dword [ebp - 0x1c], edx
jmp 0x449384
movzx eax, word [esi]
mov dword [ebp - 0x1c], eax
mov edx, eax
test edx, edx
je 0x44947b
cmp edx, 0xfffa0000
je 0x44947b
xor eax, eax
cmp ecx, 0x1e
setge al
lea eax, [eax + eax + 2]
mov al, byte [eax + edi + 0x3c]
shr al, 7
test al, al
je 0x449420
xor eax, eax
cmp ecx, 0x1e
setge al
lea eax, [eax + eax + 3]
mov esi, dword [eax + edi + 0x3c]
cmp esi, dword [ebp - 0x30]
je 0x449420
cmp dword [ebp - 0x24], 0
je 0x4493ef
mov edx, dword [edi + 0x28]
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0x28]
call eax
push 8
lea ecx, [ebp - 0x44]
add eax, 0xfffffff7
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
call fcn.00459a5c
mov edx, dword [edi + 0x28]
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0x28]
call eax
lea ecx, [eax - 9]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov edx, dword [edi + 0x1080]
mov dword [edx + eax*8], ecx
mov ecx, dword [edi + 0x1080]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + eax*8 + 4], esi
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
mov eax, dword [edi + 0x28]
push 1
add edx, 0xfffffff7
push 0
push edx
mov edx, dword [eax + 0x2c]
lea ecx, [edi + 0x28]
call edx
mov eax, dword [edi + 0x28]
mov edx, dword [eax + 0xc]
lea ecx, [edi + 0x28]
call edx
xor esi, esi
cmp eax, dword [edi + 0x1050]
jne 0x44944c
cmp edx, esi
je 0x44947b
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x64
jle 0x44945b
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x150]
push 0
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x449350
mov esi, dword [ebp - 0x20]
push 0
mov ecx, esi
call fcn.004649c9
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
mov dword [ebp - 4], 2
jmp 0x4494dd
cmp dword [ebp - 0x24], 0
je 0x4494eb
lea ecx, [ebp - 0x58]
call fcn.00459d29
mov eax, dword [edi + 0x107c]
mov cx, word [ebp - 0x28]
mov word [eax + 8], cx
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44951c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44953f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00459f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret