Function at 0x4a5d80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x128], edx
mov ebx, ecx
mov dword [ebp - 0x11c], eax
push edi
mov dword [ebp - 0x114], 1
cmp dword [0x502c08], esi
jne 0x4a5dd7
call fcn.004a5c00
test eax, eax
jne 0x4a5dd7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4a5eb8
cmp byte [ebx], 0
je 0x4a5eb8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, 0x104
ja 0x4a5dc4
lea eax, [ebp - 0x110]
xor edi, edi
sub ebx, 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 0x4a5e03
cmp byte [ebp - 0x110], al
mov al, byte [ebp - 0x10f]
jne 0x4a5e9b
cmp al, 0x5c
jne 0x4a5e9b
mov eax, 2
xor ecx, ecx
cmp esi, eax
jbe 0x4a5eb8
nop
cmp byte [ebp + eax - 0x110], 0x5c
jne 0x4a5e50
inc ecx
cmp ecx, 2
je 0x4a5e83
inc eax
cmp eax, esi
jb 0x4a5e40
cmp ecx, 1
jne 0x4a5eb8
cmp byte [ebp + esi - 0x110], 0x5c
je 0x4a5eb8
mov byte [ebp + esi - 0x110], 0x5c
inc esi
cmp esi, 0x105
jae 0x4a6034
mov byte [ebp + esi - 0x110], 0
jmp 0x4a5eb8
inc eax
cmp eax, 0x105
jae 0x4a6034
mov byte [ebp + eax - 0x110], 0
mov esi, eax
jmp 0x4a5eb8
cmp al, 0x3a
jne 0x4a5eaf
mov word [ebp - 0x10e], 0x5c
mov esi, 3
jmp 0x4a5eb8
mov byte [ebp - 0x110], 0
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5861e0
call edi
cmp dword [0x553820], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x4a5eee
lea eax, [ebp - 0x110]
push eax
push 0x55383c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4a5fe6
push 0x5861e0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x120], 0
call ebx
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 - 0x114], eax
test eax, eax
je 0x4a5f8b
test byte [ebp - 0x124], 8
je 0x4a5f8b
mov ecx, dword [ebp - 0x11c]
cmp dword [ecx + 8], 0
je 0x4a5f8b
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 0x4a5f8b
mov ecx, dword [ebp - 0x128]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x120], 1
call fcn.004a5ca0
push 0x5861e0
call edi
cmp dword [ebp - 0x114], 0
je 0x4a600c
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x55383c
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x124]
mov dword [0x55382c], eax
mov eax, dword [ebp - 0x120]
mov dword [0x553830], eax
mov eax, dword [ebp - 0x118]
mov dword [0x553824], 0
mov dword [0x553834], eax
mov dword [0x553820], 1
mov edx, dword [ebp - 0x11c]
mov ecx, 0x49
mov esi, 0x553820
mov edi, edx
mov eax, dword [edx + 8]
mov dword [0x553828], eax
mov eax, dword [edx + 0x18]
mov dword [0x553838], eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4a6016
mov dword [0x553820], 0
push 0x5861e0
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret
call fcn.004ad865
int3