Function at 0x403fa8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov eax, 0x49ba0c
call fcn.0047b534
mov edx, dword [0x49a2d0]
mov dword [ebp - 0x4c], edx
mov dl, byte [0x49a2d4]
mov byte [ebp - 0x48], dl
call sub.KERNEL32.DLL_GetLogicalDrives
mov esi, eax
test esi, esi
je 0x40423e
xor ebx, ebx
mov eax, esi
and eax, 1
cmp eax, 1
jne 0x40422d
lea edx, [ebx + 0x43]
lea ecx, [ebp - 0x4c]
push edx
push 0x49a8b9
push ecx
call fcn.0047ce30
add esp, 0xc
push 0x49a8bc
lea eax, [ebp - 0x4c]
push eax
call fcn.0047b274
add esp, 8
lea edx, [ebp - 0x4c]
push edx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jne 0x40422d
mov word [edi + 0x10], 0x14
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x14]
call fcn.00485610
inc dword [edi + 0x1c]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
mov eax, 0x49a8bf
inc dword [edi + 0x1c]
call fcn.00485bec
dec dword [edi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004857e4
mov word [edi + 0x10], 8
mov word [edi + 0x10], 0x20
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x10], ecx
xor edx, edx
inc dword [edi + 0x1c]
mov dword [ebp - 0xc], eax
inc dword [edi + 0x1c]
mov dword [ebp - 8], edx
inc dword [edi + 0x1c]
inc dword [edi + 0x1c]
mov edx, 0x49a8dd
mov word [edi + 0x10], 8
mov word [edi + 0x10], 0x2c
lea eax, [ebp - 0x18]
call fcn.00485610
inc dword [edi + 0x1c]
lea ecx, [ebp - 0x18]
push ecx
call fcn.00429a88
fstp qword [ebp - 0x54]
lea eax, [ebp - 0x54]
xor edx, edx
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x1c]
inc dword [edi + 0x1c]
pop edx
call fcn.00485fe8
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00485814
dec dword [edi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004857e4
lea edx, [ebp - 4]
lea eax, [ebp - 8]
call fcn.00485814
mov ecx, dword [0x4a4774]
cmp ecx, dword [0x4a4780]
je 0x404164
mov eax, dword [0x4a4774]
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x20], edx
test edx, edx
je 0x40415b
mov word [edi + 0x10], 0x44
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x20]
call fcn.00485648
inc dword [edi + 0x1c]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.00485648
inc dword [edi + 0x1c]
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x20]
add eax, 8
call fcn.00485648
inc dword [edi + 0x1c]
add dword [edi + 0x1c], 0xfffffffd
mov word [edi + 0x10], 0x38
add dword [0x4a4774], 0xc
jmp 0x404184
push 1
lea ecx, [ebp - 0x60]
push 1
push ecx
lea eax, [ebp - 0x10]
mov edx, dword [0x4a4774]
push eax
push edx
push 0x4a4770
call fcn.00404254
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
push ecx
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x4041e4
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004857e4
jmp 0x40423e
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004857e4
mov word [edi + 0x10], 0
cmp ebx, 0x13
jne 0x404234
xor esi, esi
inc ebx
cmp ebx, 0x14
jl 0x403fe1
and esi, 1
cmp esi, 1
mov eax, dword [edi]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret