Function at 0x4c98e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x118], edx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x114], edi
cmp dword [0x5e7e94], esi
jne 0x4c991a
call fcn.004c9730
test eax, eax
je 0x4c993c
test ebx, ebx
je 0x4c9a8a
cmp byte [ebx], 0
je 0x4c9a8a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, 0x104
jbe 0x4c994f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
lea edx, [esi + 1]
xor edi, edi
mov dword [ebp - 0x11c], edx
cmp edx, 0x10
jb 0x4c99e4
lea ecx, [ebp - 0x110]
lea edx, [ebp - 0x110]
add ecx, esi
lea eax, [ebx + esi]
cmp edx, eax
mov edx, dword [ebp - 0x11c]
ja 0x4c9982
cmp ecx, ebx
jae 0x4c99e4
movaps xmm5, xmmword [str.________________]
mov eax, edx
movaps xmm6, xmmword [0x5cf190]
and eax, 0xf
mov ecx, esi
sub ecx, eax
nop dword [eax]
movups xmm4, xmmword [ebx + edi]
movups xmm0, xmmword [ebp + edi - 0x110]
movaps xmm3, xmm4
pcmpeqb xmm3, xmm5
movaps xmm2, xmm3
movaps xmm1, xmm3
pand xmm2, xmm6
pandn xmm1, xmm0
por xmm2, xmm1
pand xmm2, xmm3
pandn xmm3, xmm4
por xmm2, xmm3
movups xmmword [ebp + edi - 0x110], xmm2
add edi, 0x10
cmp edi, ecx
jbe 0x4c99a0
cmp edi, esi
ja 0x4c9a15
lea eax, [ebp - 0x110]
sub ebx, eax
nop dword [eax]
lea edx, [ebp - 0x110]
mov eax, 0x5c
add edx, edi
cmp byte [ebx + edx], 0x2f
movzx ecx, byte [ebx + edx]
cmove ecx, eax
inc edi
mov byte [edx], cl
cmp edi, esi
jbe 0x4c99f0
mov edx, dword [ebp - 0x11c]
cmp byte [ebp - 0x110], 0x5c
mov al, byte [ebp - 0x10f]
jne 0x4c9c2c
cmp al, 0x5c
jne 0x4c9c2c
mov eax, 2
xor ecx, ecx
cmp esi, eax
jbe 0x4c9a84
nop dword [eax + eax]
cmp byte [ebp + eax - 0x110], 0x5c
jne 0x4c9a54
inc ecx
cmp ecx, 2
je 0x4c9c11
inc eax
cmp eax, esi
jb 0x4c9a40
cmp ecx, 1
jne 0x4c9a84
lea eax, [ebp - 0x110]
cmp byte [eax + esi], 0x5c
je 0x4c9a84
mov byte [eax + esi], 0x5c
mov esi, edx
cmp edx, 0x105
jae 0x4c9d3c
mov byte [ebp + edx - 0x110], 0
mov edi, dword [ebp - 0x114]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x656ee0
call ebx
cmp dword [0x624520], 0
je 0x4c9aba
lea eax, [ebp - 0x110]
push eax
push 0x62453c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4c9ced
push 0x656ee0
mov dword [ebp - 0x128], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
lea eax, [ebp - 0x124]
xor ecx, ecx
cmp byte [ebp - 0x110], cl
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push 0
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x4c9c92
test byte [ebp - 0x124], 8
je 0x4c9c92
cmp dword [edi + 8], 0
je 0x4c9c92
xor ecx, ecx
lea eax, [ebp - 0x110]
cmp byte [ebp - 0x110], cl
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x4c9c92
xor edi, edi
mov dword [ebp - 0x128], 1
push edi
push 0x2000000
push 3
push edi
push 7
push 0x81020000
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x120], eax
cmp eax, 0xffffffff
je 0x4c9c57
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], edi
push ecx
push edi
push edi
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c9bf3
push dword [ebp - 0x118]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x4c9bf3
lea ecx, [ebp - 0x118]
push ecx
push dword [ebp - 0x118]
push eax
push 0xc
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
push dword [ebp - 0x12c]
test eax, eax
mov ecx, 1
push 0
cmovne edi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x656ee0
call ebx
mov ebx, dword [ebp - 0x11c]
jmp 0x4c9ca5
inc eax
cmp eax, 0x105
jae 0x4c9d3c
mov byte [ebp + eax - 0x110], 0
mov esi, eax
jmp 0x4c9a84
mov edi, dword [ebp - 0x114]
cmp al, 0x3a
jne 0x4c9c49
mov word [ebp - 0x10e], 0x5c
mov esi, 3
jmp 0x4c9a8a
mov byte [ebp - 0x110], 0
xor esi, esi
jmp 0x4c9a8a
push 0
push 0
push 3
push 0
push 7
push 0x1000000
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4c9c92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x656ee0
mov edi, 4
call ebx
mov ebx, dword [ebp - 0x11c]
jmp 0x4c9ca5
push 0x656ee0
call ebx
mov ebx, dword [ebp - 0x11c]
xor edi, edi
test ebx, ebx
je 0x4c9d18
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x62453c
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x124]
mov dword [0x62452c], eax
mov eax, dword [ebp - 0x128]
mov dword [0x624524], 0
mov dword [0x624530], eax
mov dword [0x624534], edi
mov dword [0x624520], 1
jmp 0x4c9cf2
mov ebx, 1
mov edx, dword [ebp - 0x114]
mov ecx, 0x49
mov esi, 0x624520
mov edi, edx
mov eax, dword [edx + 8]
mov dword [0x624528], eax
mov eax, dword [edx + 0x18]
mov dword [0x624538], eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4c9d1e
mov dword [0x624520], edi
push 0x656ee0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
call fcn.0053da20
int3