Function at 0x407edf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
xor ebx, ebx
cmp dword [0x419b84], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 1
jne 0x407f0a
call fcn.00407e46
test eax, eax
je 0x408115
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x407ff0
cmp byte [edi], bl
je 0x407ff0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
cmp edx, 0x104
mov dword [ebp - 4], edx
jbe 0x407f3a
xor eax, eax
jmp 0x408113
lea eax, [ebp - 0x11c]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0x11c]
mov cl, byte [edi + eax]
cmp cl, 0x2f
jne 0x407f58
mov byte [eax], 0x5c
jmp 0x407f5a
mov byte [eax], cl
inc esi
cmp esi, edx
jbe 0x407f44
cmp byte [ebp - 0x11c], 0x5c
jne 0x407fc8
cmp byte [ebp - 0x11b], 0x5c
jne 0x407fc8
push 2
pop eax
xor ecx, ecx
cmp edx, eax
jbe 0x407ff0
cmp byte [ebp + eax - 0x11c], 0x5c
jne 0x407f8a
inc ecx
cmp ecx, 2
je 0x407f92
inc eax
cmp eax, dword [ebp - 4]
jb 0x407f7a
jmp 0x407f9d
inc eax
mov byte [ebp + eax - 0x11c], bl
mov dword [ebp - 4], eax
cmp ecx, 1
jne 0x407ff0
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x11c]
cmp byte [eax], 0x5c
je 0x407ff0
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 0x407ff0
cmp byte [ebp - 0x11b], 0x3a
jne 0x407fe7
mov byte [ebp - 0x11a], 0x5c
mov byte [ebp - 0x119], bl
mov dword [ebp - 4], 3
jmp 0x407ff0
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 [0x419f60], ebx
je 0x408020
lea eax, [ebp - 0x11c]
push eax
push 0x419f78
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4080d9
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 0x408098
test byte [ebp - 0xc], 8
je 0x408098
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], ebx
je 0x408098
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 0x408098
push dword [ebp + 0xc]
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
call fcn.00407cbf
pop ecx
xor ebx, ebx
push esi
call edi
cmp dword [ebp - 8], ebx
je 0x408103
mov eax, dword [ebp - 4]
inc eax
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x419f78
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0xc]
mov dword [0x419f68], eax
mov eax, dword [ebp - 0x14]
mov dword [0x419f6c], eax
mov eax, dword [ebp - 0x10]
mov dword [0x419f70], eax
mov dword [0x419f60], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push 0x120
mov dword [0x419f64], ecx
mov ecx, dword [eax + 0x14]
push 0x419f60
push eax
mov dword [0x419f74], ecx
call fcn.00408d60
add esp, 0xc
jmp 0x408109
mov dword [0x419f60], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret