Function at 0x498de0
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 [0x502b74], esi
jne 0x498e37
call fcn.00498b50
test eax, eax
jne 0x498e37
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 0x498f18
cmp byte [ebx], 0
je 0x498f18
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, 0x104
ja 0x498e24
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 0x498e63
cmp byte [ebp - 0x110], al
mov al, byte [ebp - 0x10f]
jne 0x498efb
cmp al, 0x5c
jne 0x498efb
mov eax, 2
xor ecx, ecx
cmp esi, eax
jbe 0x498f18
nop
cmp byte [ebp + eax - 0x110], 0x5c
jne 0x498eb0
inc ecx
cmp ecx, 2
je 0x498ee3
inc eax
cmp eax, esi
jb 0x498ea0
cmp ecx, 1
jne 0x498f18
cmp byte [ebp + esi - 0x110], 0x5c
je 0x498f18
mov byte [ebp + esi - 0x110], 0x5c
inc esi
cmp esi, 0x105
jae 0x49908a
mov byte [ebp + esi - 0x110], 0
jmp 0x498f18
inc eax
cmp eax, 0x105
jae 0x49908a
mov byte [ebp + eax - 0x110], 0
mov esi, eax
jmp 0x498f18
cmp al, 0x3a
jne 0x498f0f
mov word [ebp - 0x10e], 0x5c
mov esi, 3
jmp 0x498f18
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 0x498f4e
lea eax, [ebp - 0x110]
push eax
push 0x553838
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x49903c
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 0x498feb
test byte [ebp - 0x124], 8
je 0x498feb
mov ecx, dword [ebp - 0x11c]
cmp dword [ecx + 4], 0
je 0x498feb
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 0x498feb
mov ecx, dword [ebp - 0x128]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x120], 1
call fcn.00498d00
push 0x5861e0
call edi
cmp dword [ebp - 0x114], 0
je 0x499062
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x553838
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x124]
mov dword [0x553828], eax
mov eax, dword [ebp - 0x120]
mov dword [0x55382c], eax
mov eax, dword [ebp - 0x118]
mov dword [0x553830], eax
mov dword [0x553820], 1
mov edx, dword [ebp - 0x11c]
mov ecx, 0x48
mov esi, 0x553820
mov edi, edx
mov eax, dword [edx + 4]
mov dword [0x553824], eax
mov eax, dword [edx + 0x14]
mov dword [0x553834], eax
rep movsd dword es:[edi], dword [esi]
jmp 0x49906c
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