Function at 0x474d6b
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x507381
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x56d078]
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 0x474eca
call fcn.00406abb
mov ecx, eax
test ecx, ecx
je case.0x474d64.1
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x474caf
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x474cb1
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x474e01
test ebx, 0xffff0000
jne 0x474d82
movzx ebx, bx
mov ecx, ebx
call fcn.00409bb8
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x474e7b
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 0x474e7b
mov ecx, dword [ebp - 0x14]
mov edx, eax
push ebx
call fcn.00409c1a
mov edx, eax
add esp, 4
mov dword [ebp - 0x14], edx
test edx, edx
je 0x474e7b
movzx ebx, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x474d42
push ebx
lea ecx, [ebp - 0x10]
call fcn.004067b5
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx]
lea eax, [edx + 2]
push ecx
push eax
push ebx
push esi
call fcn.004d6852
add esp, 0x10
cmp eax, 0x50
ja case.0x474d64.1
movzx eax, byte [eax + 0x474f40]
jmp dword [eax*4 + 0x474f30]
cmp ebx, dword [esi - 8]
jg case.0x474d64.20
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x474e7b
push ebx
call fcn.004d3ded
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x474e01
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 - 0x14], eax
test ebx, ebx
js case.0x474d64.20
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x474dd1
push ebx
lea ecx, [ebp - 0x10]
call fcn.004067b5
mov esi, dword [ebp - 0x10]
lea edx, [ebp]
lea edx, [edx + edi*2]
mov eax, dword [ebp - 0x14]
mov ecx, esi
push ebx
cmp eax, dword [ebp - 0x24]
ja 0x474df0
mov edx, dword [esi - 8]
lea eax, [esi + eax*2]
push eax
call fcn.00409dbe
add esp, 8
jmp case.0x474d64.78
push edx
mov edx, dword [esi - 8]
call fcn.00406697
add esp, 8
jmp case.0x474d64.78
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov ebx, dword [ecx]
je 0x474e7b
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x474e2d
cmp dword [esi - 8], 0
jl case.0x474d64.20
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x474e7b
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x474e5c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x523a78
jne 0x474e58
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x474e5c
mov ecx, edx
call esi
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a78
jne 0x474e71
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
jmp 0x474e75
mov ecx, ebx
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00471ac0
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x474ecd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a78
jne 0x474ec6
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x474ecd
call edx
jmp 0x474ecd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jae 0x474ee1
cmp word [ebp + edi*2], 0
je 0x474ee1
inc edi
cmp edi, eax
jb 0x474ed4
inc edi
cmp edi, eax
jb 0x474c75
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.004cde67
lea esp, [ebp + 0xcc]
pop ebp
ret
push 0x80070057
call fcn.00406bfc
push 0x8007000e
call fcn.00406bfc
push 0x80004005
call fcn.00406bfc
nop dword [eax]
imul ecx, dword [ebp + 0x47], 0
sbb dword [edi + 71], ecx
add byte [edi], cl
dec edi
inc edi
add byte [ebx], ah
dec edi
inc edi
add byte [eax], 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