Function at 0x47a4bf
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x4ba700]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xb0]
push esi
mov esi, dword [ebp + 0xac]
push edi
xor edi, edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xb4]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], 1
cmp dword [0x4d8ae0], edi
jne 0x47a515
call fcn.0047a426
test eax, eax
je 0x47a6db
push ebx
cmp esi, edi
je 0x47a5d4
cmp byte [esi], 0
je 0x47a5d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x6c], ebx
cmp ebx, 0x104
jbe 0x47a542
xor eax, eax
jmp 0x47a6da
lea eax, [ebp - 0x68]
xor edx, edx
sub esi, eax
lea eax, [ebp + edx - 0x68]
mov cl, byte [esi + eax]
cmp cl, 0x2f
jne 0x47a55a
mov byte [eax], 0x5c
jmp 0x47a55c
mov byte [eax], cl
inc edx
cmp edx, ebx
jbe 0x47a549
cmp byte [ebp - 0x68], 0x5c
jne 0x47a5b6
cmp byte [ebp - 0x67], 0x5c
jne 0x47a5b6
push 2
pop eax
xor ecx, ecx
cmp ebx, eax
jbe 0x47a5d4
cmp byte [ebp + eax - 0x68], 0x5c
jne 0x47a583
inc ecx
cmp ecx, 2
je 0x47a58a
inc eax
cmp eax, ebx
jb 0x47a576
jmp 0x47a593
inc eax
mov byte [ebp + eax - 0x68], 0
mov dword [ebp - 0x6c], eax
cmp ecx, 1
jne 0x47a5d4
mov eax, dword [ebp - 0x6c]
lea eax, [ebp + eax - 0x68]
cmp byte [eax], 0x5c
je 0x47a5d4
mov cl, byte [ebp - 0x68]
mov byte [eax], cl
mov eax, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov byte [ebp + eax - 0x67], 0
jmp 0x47a5d4
cmp byte [ebp - 0x67], 0x3a
jne 0x47a5cd
mov byte [ebp - 0x66], 0x5c
mov byte [ebp - 0x65], 0
mov dword [ebp - 0x6c], 3
jmp 0x47a5d4
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x6c], edi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 0x4f4200
push ebx
call esi
cmp dword [0x4f40c0], edi
je 0x47a601
lea eax, [ebp - 0x68]
push eax
push 0x4f40d8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x47a6aa
push ebx
mov dword [ebp - 0x74], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x78]
push ecx
push eax
push eax
push eax
push eax
movsx eax, byte [ebp - 0x68]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x68]
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x47a66d
test byte [ebp - 0x78], 8
je 0x47a66d
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 4], edi
je 0x47a66d
movsx eax, byte [ebp - 0x68]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x68]
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x47a66d
push dword [ebp - 0x80]
xor edi, edi
lea ebx, [ebp - 0x74]
inc edi
call fcn.0047a29f
pop ecx
mov ebx, 0x4f4200
push ebx
call esi
cmp dword [ebp - 0x70], 0
je 0x47a6c9
mov eax, dword [ebp - 0x6c]
inc eax
push eax
lea eax, [ebp - 0x68]
push eax
push 0x4f40d8
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x78]
mov dword [0x4f40c8], eax
mov eax, dword [ebp - 0x74]
mov dword [0x4f40cc], edi
mov dword [0x4f40d0], eax
mov dword [0x4f40c0], 1
mov edi, dword [ebp - 0x7c]
mov eax, dword [edi + 4]
mov dword [0x4f40c4], eax
mov eax, dword [edi + 0x14]
push 0x48
pop ecx
mov esi, 0x4f40c0
mov dword [0x4f40d4], eax
rep movsd dword es:[edi], dword [esi]
jmp 0x47a6d0
and dword [0x4f40c0], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x70]
pop ebx
mov ecx, dword [ebp + 0xa0]
pop edi
xor ecx, ebp
pop esi
call fcn.0047c3ff
add ebp, 0xa4
leave
ret