Function at 0x471020
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x508f51
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
push 0x64
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x1c], eax
xor edi, edi
lea ebx, [ebp]
lea ebx, [ebx + edi*2]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x471328
call fcn.00406cde
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je case.0x4711c2.1
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x4710e6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4710e8
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x47125f
test ebx, 0xffff0000
jne 0x4711e0
movzx ebx, bx
mov ecx, ebx
call fcn.00409109
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4712d9
mov eax, ebx
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4712d9
mov ecx, dword [ebp - 0x10]
mov edx, eax
push ebx
call fcn.0040916b
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
test edx, edx
je 0x4712d9
movzx ebx, word [edx]
test ebx, ebx
js case.0x4711c2.22
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x471181
push ebx
lea ecx, [ebp - 0x14]
call fcn.004069d7
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx]
lea eax, [edx + 2]
mov dword [ebp - 0x10], eax
cmp ecx, 0xffffffff
jne 0x4711a6
test eax, eax
jne 0x471197
xor ecx, ecx
jmp 0x4711a5
push eax
call fcn.004d635d
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x10]
inc ecx
push ecx
push eax
push ebx
push esi
call fcn.004d64b0
add esp, 0x10
cmp eax, 0x50
ja case.0x4711c2.1
movzx eax, byte [eax + 0x47139c]
jmp dword [eax*4 + 0x47138c]
cmp ebx, dword [esi - 8]
jg case.0x4711c2.22
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x4712d9
push ebx
call fcn.004d635d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47125f
mov eax, dword [esi - 0xc]
lea edx, [ebp]
mov dword [ebp - 0x24], eax
lea edx, [edx + edi*2]
mov eax, edx
sub eax, esi
sar eax, 1
mov dword [ebp - 0x10], eax
test ebx, ebx
js case.0x4711c2.22
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x47122f
push ebx
lea ecx, [ebp - 0x14]
call fcn.004069d7
mov esi, dword [ebp - 0x14]
lea edx, [ebp]
lea edx, [edx + edi*2]
mov eax, dword [ebp - 0x10]
mov ecx, esi
push ebx
cmp eax, dword [ebp - 0x24]
ja 0x47124e
mov edx, dword [esi - 8]
lea eax, [esi + eax*2]
push eax
call fcn.0040930f
add esp, 8
jmp case.0x4711c2.0
push edx
mov edx, dword [esi - 8]
call fcn.004068c0
add esp, 8
jmp case.0x4711c2.0
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov ebx, dword [ecx]
je 0x4712d9
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x47128b
cmp dword [esi - 8], 0
jl case.0x4711c2.22
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x4712d9
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4712ba
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x523a98
jne 0x4712b6
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4712ba
mov ecx, edx
call esi
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x4712cf
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
jmp 0x4712d3
mov ecx, ebx
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0046e350
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47132b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a98
jne 0x471324
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47132b
call edx
jmp 0x47132b
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jae 0x47133f
cmp word [ebp + edi*2], 0
je 0x47133f
inc edi
cmp edi, eax
jb 0x471332
inc edi
cmp edi, eax
jb 0x4710a5
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.004d014c
lea esp, [ebp + 0xcc]
pop ebp
ret
push 0x80070057
call fcn.00406e60
push 0x8007000e
call fcn.00406e60
push 0x80004005
call fcn.00406e60
nop
leave
adc dword [edi], eax
ja 0x4713a5
inc edi
add byte [ebp + 0x13], ch
inc edi
add byte [ecx + 0x4713], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3