Function at 0x4705e0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x506521
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5651c0]
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 0x4708e8
call fcn.00406d01
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je case.0x470782.1
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x51e0b8
jne 0x4706a6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4706a8
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x47081f
test ebx, 0xffff0000
jne 0x4707a0
movzx ebx, bx
mov ecx, ebx
call fcn.0040912c
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x470899
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 0x470899
mov ecx, dword [ebp - 0x10]
mov edx, eax
push ebx
call fcn.0040918e
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
test edx, edx
je 0x470899
movzx ebx, word [edx]
test ebx, ebx
js case.0x470782.22
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x470741
push ebx
lea ecx, [ebp - 0x14]
call fcn.004069f7
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 0x470766
test eax, eax
jne 0x470757
xor ecx, ecx
jmp 0x470765
push eax
call fcn.004d828d
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x10]
inc ecx
push ecx
push eax
push ebx
push esi
call fcn.004d83e0
add esp, 0x10
cmp eax, 0x50
ja case.0x470782.1
movzx eax, byte [eax + 0x47095c]
jmp dword [eax*4 + 0x47094c]
cmp ebx, dword [esi - 8]
jg case.0x470782.22
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x470899
push ebx
call fcn.004d828d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47081f
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.0x470782.22
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4707ef
push ebx
lea ecx, [ebp - 0x14]
call fcn.004069f7
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 0x47080e
mov edx, dword [esi - 8]
lea eax, [esi + eax*2]
push eax
call fcn.00409332
add esp, 8
jmp case.0x470782.0
push edx
mov edx, dword [esi - 8]
call fcn.004068e0
add esp, 8
jmp case.0x470782.0
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov ebx, dword [ecx]
je 0x470899
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x47084b
cmp dword [esi - 8], 0
jl case.0x470782.22
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x470899
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x47087a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x470876
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47087a
mov ecx, edx
call esi
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
cmp eax, 0x51e0b8
jne 0x47088f
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
jmp 0x470893
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.0046daf0
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4708eb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x4708e4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4708eb
call edx
jmp 0x4708eb
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jae 0x4708ff
cmp word [ebp + edi*2], 0
je 0x4708ff
inc edi
cmp edi, eax
jb 0x4708f2
inc edi
cmp edi, eax
jb 0x470665
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.004d207d
lea esp, [ebp + 0xcc]
pop ebp
ret
push 0x80070057
call fcn.00406e83
push 0x8007000e
call fcn.00406e83
push 0x80004005
call fcn.00406e83
nop
mov dword [edi], eax
inc edi
add byte [edi], dh
or dword [edi], eax
sub eax, 0x41004709
or dword [edi], eax
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [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 [ebx]
add ah, cl
int3