Function at 0x41eaf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x449464]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
cmp dword [0x44ecac], 0
jne 0x41eb2a
call fcn.0041e850
test eax, eax
jne 0x41eb2a
xor eax, eax
jmp 0x41ee4d
cmp dword [ebp + 8], 0
je 0x41ecd5
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x41ecd5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x104
jbe 0x41eb5f
xor eax, eax
jmp 0x41ee4d
mov dword [ebp - 0x11c], 0
jmp 0x41eb7a
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 8]
ja 0x41ebc0
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x11c]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x41eba6
mov ecx, dword [ebp - 0x11c]
mov byte [ebp + ecx - 0x118], 0x5c
jmp 0x41ebbe
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x11c]
mov cl, byte [edx]
mov byte [ebp + eax - 0x118], cl
jmp 0x41eb6b
movsx edx, byte [ebp - 0x118]
cmp edx, 0x5c
jne 0x41eca4
movsx eax, byte [ebp - 0x117]
cmp eax, 0x5c
jne 0x41eca4
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 2
jmp 0x41ec05
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 8]
jae 0x41ec65
mov eax, dword [ebp - 0x11c]
movsx ecx, byte [ebp + eax - 0x118]
cmp ecx, 0x5c
jne 0x41ec63
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x120], 2
jne 0x41ec63
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov byte [ebp + ecx - 0x118], 0
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 8], edx
jmp 0x41ec65
jmp 0x41ebf6
cmp dword [ebp - 0x120], 1
jne 0x41eca2
mov eax, dword [ebp - 8]
movsx ecx, byte [ebp + eax - 0x118]
cmp ecx, 0x5c
je 0x41eca2
mov edx, dword [ebp - 8]
mov al, byte [ebp - 0x118]
mov byte [ebp + edx - 0x118], al
mov ecx, dword [ebp - 8]
mov byte [ebp + ecx - 0x117], 0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x41ecd5
movsx eax, byte [ebp - 0x117]
cmp eax, 0x3a
jne 0x41ecc7
mov byte [ebp - 0x116], 0x5c
mov byte [ebp - 0x115], 0
mov dword [ebp - 8], 3
jmp 0x41ecd5
mov byte [ebp - 0x118], 0
mov dword [ebp - 8], 0
push 0x44ffc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44fea0], 0
je 0x41ed03
lea ecx, [ebp - 0x118]
push ecx
push 0x44feb8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41edff
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
push 0x44ffc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
lea edx, [ebp - 0x124]
push edx
push 0
push 0
push 0
push 0
movsx eax, byte [ebp - 0x118]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x118]
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41eda8
mov edx, dword [ebp - 0x124]
and edx, 8
je 0x41eda8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
je 0x41eda8
movsx ecx, byte [ebp - 0x118]
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x118]
and ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x41eda8
mov dword [ebp - 0x128], 1
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041e720
add esp, 8
push 0x44ffc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 4], 0
je 0x41edff
mov edx, dword [ebp - 8]
add edx, 1
push edx
lea eax, [ebp - 0x118]
push eax
push 0x44feb8
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x124]
mov dword [0x44fea8], ecx
mov edx, dword [ebp - 0x128]
mov dword [0x44feac], edx
mov eax, dword [ebp - 0x12c]
mov dword [0x44feb0], eax
mov dword [0x44fea0], 1
cmp dword [ebp - 4], 0
je 0x41ee35
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov dword [0x44fea4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [0x44feb4], ecx
push 0x120
push 0x44fea0
mov edx, dword [ebp + 0x10]
push edx
call fcn.004043d0
add esp, 0xc
jmp 0x41ee3f
mov dword [0x44fea0], 0
push 0x44ffc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00403c87
mov esp, ebp
pop ebp
ret