Function at 0x46cd2a
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x4ba700]
xor eax, ebp
mov dword [ebp + 0xa4], eax
mov eax, dword [ebp + 0xb4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xb8]
push esi
mov esi, dword [ebp + 0xb0]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], 1
cmp dword [0x4bdb8c], ebx
jne 0x46cd80
call fcn.0046cc91
test eax, eax
je 0x46cf54
push edi
cmp esi, ebx
je 0x46ce3a
cmp byte [esi], bl
je 0x46ce3a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov dword [ebp - 0x68], edi
cmp edi, 0x104
jbe 0x46cdac
xor eax, eax
jmp 0x46cf53
lea eax, [ebp - 0x64]
xor edx, edx
sub esi, eax
lea eax, [ebp + edx - 0x64]
mov cl, byte [esi + eax]
cmp cl, 0x2f
jne 0x46cdc4
mov byte [eax], 0x5c
jmp 0x46cdc6
mov byte [eax], cl
inc edx
cmp edx, edi
jbe 0x46cdb3
cmp byte [ebp - 0x64], 0x5c
jne 0x46ce1e
cmp byte [ebp - 0x63], 0x5c
jne 0x46ce1e
push 2
pop eax
xor ecx, ecx
cmp edi, eax
jbe 0x46ce3a
cmp byte [ebp + eax - 0x64], 0x5c
jne 0x46cded
inc ecx
cmp ecx, 2
je 0x46cdf4
inc eax
cmp eax, edi
jb 0x46cde0
jmp 0x46cdfc
inc eax
mov byte [ebp + eax - 0x64], bl
mov dword [ebp - 0x68], eax
cmp ecx, 1
jne 0x46ce3a
mov eax, dword [ebp - 0x68]
lea eax, [ebp + eax - 0x64]
cmp byte [eax], 0x5c
je 0x46ce3a
mov cl, byte [ebp - 0x64]
mov byte [eax], cl
mov eax, dword [ebp - 0x68]
inc dword [ebp - 0x68]
mov byte [ebp + eax - 0x63], bl
jmp 0x46ce3a
cmp byte [ebp - 0x63], 0x3a
jne 0x46ce34
mov byte [ebp - 0x62], 0x5c
mov byte [ebp - 0x61], bl
mov dword [ebp - 0x68], 3
jmp 0x46ce3a
mov byte [ebp - 0x64], bl
mov dword [ebp - 0x68], ebx
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x4f4200
push esi
call edi
cmp dword [0x4f40c0], ebx
je 0x46ce67
lea eax, [ebp - 0x64]
push eax
push 0x4f40dc
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x46cf19
push esi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
movsx eax, byte [ebp - 0x64]
push ebx
push ebx
neg eax
push ebx
sbb eax, eax
lea ecx, [ebp - 0x64]
push ebx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x46ced5
test byte [ebp - 0x78], 8
je 0x46ced5
mov eax, dword [ebp - 0x74]
cmp dword [eax + 8], ebx
je 0x46ced5
movsx eax, byte [ebp - 0x64]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x64]
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x46ced5
push dword [ebp - 0x80]
lea ebx, [ebp - 0x7c]
mov dword [ebp - 0x70], 1
call fcn.0046cb1c
pop ecx
xor ebx, ebx
push esi
call edi
cmp dword [ebp - 0x6c], ebx
je 0x46cf43
mov eax, dword [ebp - 0x68]
inc eax
push eax
lea eax, [ebp - 0x64]
push eax
push 0x4f40dc
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x78]
mov dword [0x4f40cc], eax
mov eax, dword [ebp - 0x70]
mov dword [0x4f40d0], eax
mov eax, dword [ebp - 0x7c]
mov dword [0x4f40c4], ebx
mov dword [0x4f40d4], eax
mov dword [0x4f40c0], 1
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
push 0x124
mov dword [0x4f40c8], ecx
mov ecx, dword [eax + 0x18]
push 0x4f40c0
push eax
mov dword [0x4f40d8], ecx
call fcn.00485490
add esp, 0xc
jmp 0x46cf49
mov dword [0x4f40c0], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x6c]
pop edi
mov ecx, dword [ebp + 0xa4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c3ff
add ebp, 0xa8
leave
ret