Function at 0x4081e8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
xor ebx, ebx
cmp dword [0x419b64], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 1
jne 0x408213
call fcn.00408076
test eax, eax
je 0x408424
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4082f9
cmp byte [edi], bl
je 0x4082f9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
cmp edx, 0x104
mov dword [ebp - 4], edx
jbe 0x408243
xor eax, eax
jmp 0x408422
lea eax, [ebp - 0x11c]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0x11c]
mov cl, byte [edi + eax]
cmp cl, 0x2f
jne 0x408261
mov byte [eax], 0x5c
jmp 0x408263
mov byte [eax], cl
inc esi
cmp esi, edx
jbe 0x40824d
cmp byte [ebp - 0x11c], 0x5c
jne 0x4082d1
cmp byte [ebp - 0x11b], 0x5c
jne 0x4082d1
push 2
pop eax
xor ecx, ecx
cmp edx, eax
jbe 0x4082f9
cmp byte [ebp + eax - 0x11c], 0x5c
jne 0x408293
inc ecx
cmp ecx, 2
je 0x40829b
inc eax
cmp eax, dword [ebp - 4]
jb 0x408283
jmp 0x4082a6
inc eax
mov byte [ebp + eax - 0x11c], bl
mov dword [ebp - 4], eax
cmp ecx, 1
jne 0x4082f9
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x11c]
cmp byte [eax], 0x5c
je 0x4082f9
mov cl, byte [ebp - 0x11c]
mov byte [eax], cl
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
mov byte [ebp + eax - 0x11b], bl
jmp 0x4082f9
cmp byte [ebp - 0x11b], 0x3a
jne 0x4082f0
mov byte [ebp - 0x11a], 0x5c
mov byte [ebp - 0x119], bl
mov dword [ebp - 4], 3
jmp 0x4082f9
mov byte [ebp - 0x11c], bl
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x41a080
push esi
call edi
cmp dword [0x419f40], ebx
je 0x408329
lea eax, [ebp - 0x11c]
push eax
push 0x419f5c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4083e8
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
mov al, byte [ebp - 0x11c]
neg al
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x11c]
push ebx
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4083a1
test byte [ebp - 0xc], 8
je 0x4083a1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 8], ebx
je 0x4083a1
mov al, byte [ebp - 0x11c]
neg al
lea ecx, [ebp - 0x11c]
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x4083a1
push dword [ebp + 0xc]
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
call fcn.00407eef
pop ecx
xor ebx, ebx
push esi
call edi
cmp dword [ebp - 8], ebx
je 0x408412
mov eax, dword [ebp - 4]
inc eax
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x419f5c
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0xc]
mov dword [0x419f4c], eax
mov eax, dword [ebp - 0x14]
mov dword [0x419f50], eax
mov eax, dword [ebp - 0x10]
mov dword [0x419f44], ebx
mov dword [0x419f54], eax
mov dword [0x419f40], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
push 0x124
mov dword [0x419f48], ecx
mov ecx, dword [eax + 0x18]
push 0x419f40
push eax
mov dword [0x419f58], ecx
call fcn.00409170
add esp, 0xc
jmp 0x408418
mov dword [0x419f40], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret