Function at 0x417b10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a425
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
call fcn.0040d9d0
cmp dword [eax + 0x7c], 7
lea edi, [eax + 0x68]
jbe 0x417b4b
mov edi, dword [edi]
mov eax, dword [0x5f0130]
push ecx
mov ebx, esp
mov dword [ebx], eax
test edi, edi
je 0x417bab
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417b60
sub esi, ecx
sar esi, 1
je 0x417bab
lea eax, [esi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x417bab
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + esi*2 + 0xc], cx
lea ecx, [eax + 0xc]
lea eax, [esi + esi]
mov dword [ebx], ecx
push eax
push edi
push ecx
call fcn.005577f0
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov ecx, edi
call fcn.00417800
test eax, eax
jle 0x417bd0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x5f0130]
mov dword [ebp - 0x14], esi
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test eax, eax
jne 0x417c5c
call fcn.0040d9d0
add eax, 0x68
cmp dword [eax + 0x14], 7
jbe 0x417bf7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c0e0
push 0x59a304
push str.Program_Files_
lea ecx, [ebp - 0x14]
call fcn.0040fd70
mov esi, dword [ebp - 0x14]
test eax, eax
jle 0x417c5c
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
push ecx
mov ecx, esp
jl 0x417c2c
mov dword [ecx], esi
lock inc dword [eax]
jmp 0x417c39
mov eax, dword [0x5f0130]
push esi
mov dword [ecx], eax
call fcn.0040c0e0
mov ecx, edi
call fcn.00417800
test eax, eax
jle 0x417c5c
call fcn.0040d9d0
push esi
lea ecx, [eax + 0x68]
call fcn.00415ca0
mov edi, 1
jmp 0x417db1
call fcn.0040d9d0
add eax, 0x68
cmp dword [eax + 0x14], 7
jbe 0x417c6c
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov dl, 0x41
or edi, 0xffffffff
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xd], dl
test ebx, ebx
je 0x417dac
nop dword [eax]
test bl, 1
je 0x417d9c
mov eax, dword [ebp - 0x20]
movsx ecx, dl
movzx eax, ax
cmp ecx, eax
je 0x417d9c
call fcn.0040d9d0
cmp dword [eax + 0x7c], 7
lea ebx, [eax + 0x68]
jbe 0x417cba
mov ebx, dword [ebx]
mov esi, dword [0x5f0130]
mov dword [ebp - 0x24], esi
test ebx, ebx
je 0x417d1f
mov edi, ebx
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x417cd0
sub edi, ecx
sar edi, 1
je 0x417d1c
lea eax, [edi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x417d1c
mov dword [eax], 1
lea esi, [eax + 0xc]
mov dword [eax + 4], edi
xor ecx, ecx
mov dword [eax + 8], edi
mov word [eax + edi*2 + 0xc], cx
lea eax, [edi + edi]
push eax
push ebx
push esi
mov dword [ebp - 0x24], esi
call fcn.005577f0
add esp, 0xc
or edi, 0xffffffff
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c370
add esi, 0xfffffff4
mov byte [ebp - 4], 2
cmp esi, dword [0x5f012c]
je 0x417d52
mov eax, edi
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x417d52
push esi
call fcn.00408c50
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040e9e0
mov cl, byte [ebp - 0xd]
mov esi, dword [ebp - 0x14]
movsx ax, cl
push ecx
mov ecx, esp
mov word [esi], ax
lea eax, [esi - 0xc]
cmp dword [eax], 0
jl 0x417d7d
mov dword [ecx], esi
lock inc dword [eax]
jmp 0x417d8a
mov eax, dword [0x5f0130]
push esi
mov dword [ecx], eax
call fcn.0040c0e0
mov ecx, dword [ebp - 0x18]
call fcn.00417800
test eax, eax
jg 0x417de9
mov dl, byte [ebp - 0xd]
mov ebx, dword [ebp - 0x1c]
inc dl
shr ebx, 1
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x1c], ebx
jne 0x417c90
xor edi, edi
or ebx, 0xffffffff
add esi, 0xfffffff4
mov dword [ebp - 4], 3
cmp esi, dword [0x5f012c]
je 0x417dd5
lock xadd dword [esi], ebx
dec ebx
test ebx, ebx
jg 0x417dd5
push esi
call fcn.00408c50
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040d9d0
mov edx, esi
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x417df3
sub edx, edi
lea ecx, [eax + 0x68]
sar edx, 1
push edx
push esi
call fcn.00418d10
or ebx, 0xffffffff
lea edi, [ebx + 2]
jmp 0x417db1