Function at 0x415460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a1f6
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4156ef
push 0x451c88
lea ecx, [ebp - 0x22c]
call fcn.00402410
xorps xmm0, xmm0
push 0x451c88
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x244], xmm0
call fcn.00402410
mov byte [ebp - 4], 1
cmp word [ebp - 0x21c], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x23c], xmm0
lea edi, [ebp - 0x21c]
je 0x41569f
mov ebx, dword [ebp - 0x240]
mov esi, dword [ebp - 0x244]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], esi
lea esp, [esp]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415545
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x220]
call fcn.00402300
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
je 0x4156a5
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4155fd
lea eax, [ebp - 0x23c]
push eax
push ecx
mov ecx, dword [ebp - 0x220]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00401e50
add eax, 0x10
mov dword [esi], eax
call fcn.00415710
test eax, eax
je 0x41569f
mov ebx, dword [ebp - 0x238]
cmp ebx, dword [ebp - 0x224]
jb 0x4155f1
mov esi, dword [ebp - 0x23c]
ja 0x4155d1
cmp esi, dword [ebp - 0x228]
jb 0x4155f1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401a10
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], ebx
jmp 0x4155fd
mov esi, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x224]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415602
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], cx
jne 0x415540
test ebx, ebx
ja 0x41562b
jb 0x41569f
cmp esi, 0x32
jb 0x41569f
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
mov esi, dword [ebx]
lea edx, [eax - 0x10]
sub esi, 0x10
cmp edx, esi
je 0x415692
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x415687
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x415687
mov ecx, edx
call fcn.00401e50
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x41566f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x230]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x220]
mov edi, 1
jmp 0x4156a7
push dword [eax - 0xc]
mov ecx, ebx
push eax
call fcn.00402300
mov eax, dword [ebp - 0x220]
mov edi, 1
jmp 0x4156a7
mov eax, dword [ebp - 0x220]
xor edi, edi
lea edx, [eax - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4156c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x22c]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4156eb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x4156f1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret 4