Function at 0x40f572
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x40f8cf
cmp byte [ebx], 0
je 0x40f8cf
cmp dword [ebp + 8], 0
jne 0x40f5c4
push 0x104
call fcn.00411ced
add esp, 4
mov esi, eax
test esi, esi
jne 0x40f5bd
call fcn.004123ed
mov dword [eax], 0xc
xor eax, eax
jmp 0x40f8dd
mov edi, 0x104
jmp 0x40f5e1
mov edi, dword [ebp + 0x10]
cmp edi, 4
jae 0x40f5de
call fcn.004123ed
mov dword [eax], 0x22
xor eax, eax
jmp 0x40f8dd
mov esi, dword [ebp + 8]
lea eax, [edi + esi - 1]
mov cl, byte [ebx + 1]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
cmp cl, 0x5c
je 0x40f5f8
cmp cl, 0x2f
jne 0x40f60a
mov al, byte [ebx]
cmp al, 0x5c
je 0x40f6ed
cmp al, 0x2f
je 0x40f6ed
cmp cl, 0x3a
jne 0x40f659
movzx eax, byte [ebx]
push eax
call fcn.00414c5b
add esp, 4
test eax, eax
je 0x40f659
mov al, byte [ebx]
add ebx, 2
mov byte [esi], al
and eax, 0x1f
inc esi
push eax
mov dword [ebp - 0x10], eax
mov byte [esi], 0x3a
inc esi
call fcn.0040fd5d
add esp, 4
test eax, eax
jne 0x40f660
call fcn.004123ed
mov dword [eax], 0xd
call fcn.004123f6
mov dword [eax], 0xf
jmp 0x40f8ba
mov dword [ebp - 0x10], 0
mov al, byte [ebx]
cmp al, 0x5c
je 0x40f6cd
cmp al, 0x2f
je 0x40f6cd
cmp dword [ebp - 0x10], 0
je 0x40f676
mov al, byte [ebx - 2]
mov byte [ebp - 4], al
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0040fc37
add esp, 0xc
test eax, eax
je 0x40f8ba
mov edi, dword [ebp - 0xc]
mov ecx, 0xffffffff
sub eax, eax
mov edx, dword [ebp - 0xc]
repne scasb al, byte es:[edi]
not ecx
cmp dword [ebp - 0x10], 0
lea esi, [ecx + edx - 1]
je 0x40f6ad
mov al, byte [ebp - 4]
mov byte [edx], al
movzx eax, byte [esi - 2]
test byte [eax + 0x440b99], 4
jne 0x40f6e2
lea eax, [esi - 1]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x40f6c9
cmp cl, 0x2f
jne 0x40f6e2
mov esi, eax
jmp 0x40f6e2
cmp dword [ebp - 0x10], 0
jne 0x40f6e1
call fcn.0040eed6
add al, 0x40
mov byte [esi], al
inc esi
mov byte [esi], 0x3a
inc esi
inc ebx
mov edi, dword [ebp - 0xc]
mov byte [esi], 0x5c
add edi, 2
jmp 0x40f746
xor ecx, ecx
test al, al
je 0x40f741
inc ebx
mov byte [esi], al
cmp dword [ebp - 8], esi
jbe 0x40f8af
movzx edx, byte [esi - 2]
test byte [edx + 0x440b99], 4
jne 0x40f73a
cmp al, 0x5c
je 0x40f714
cmp al, 0x2f
jne 0x40f73a
inc ecx
mov byte [esi], 0x5c
cmp ecx, 2
jne 0x40f726
cmp byte [ebx], 0
je 0x40f7b5
cmp ecx, 3
jl 0x40f735
cmp byte [esi - 1], 0x5c
je 0x40f7c5
cmp ecx, 4
je 0x40f741
inc esi
mov al, byte [ebx]
test al, al
jne 0x40f6f3
mov edi, esi
mov byte [esi], 0x5c
cmp byte [ebx], 0
je 0x40f869
mov cl, byte [ebx]
cmp cl, 0x2e
jne 0x40f7f6
cmp byte [ebx + 1], 0x2e
jne 0x40f7d5
lea eax, [ebx + 2]
mov dword [ebp - 4], eax
mov al, byte [eax]
cmp al, 0x5c
je 0x40f774
cmp al, 0x2f
je 0x40f774
test al, al
jne 0x40f7d5
dec esi
mov al, byte [esi]
cmp al, 0x5c
je 0x40f77f
cmp al, 0x2f
jne 0x40f78e
push esi
push edi
call fcn.00414bf7
add esp, 8
test eax, eax
je 0x40f78e
dec esi
mov al, byte [esi]
cmp al, 0x5c
je 0x40f79c
cmp al, 0x2f
je 0x40f79c
cmp esi, edi
ja 0x40f774
cmp esi, edi
jb 0x40f888
mov ebx, dword [ebp - 4]
cmp byte [ebx], 0
je 0x40f869
jmp 0x40f85f
call fcn.004123ed
mov dword [eax], 0x16
jmp 0x40f8ba
call fcn.004123ed
mov dword [eax], 0x16
jmp 0x40f8ba
cmp cl, 0x2e
jne 0x40f7f6
lea edx, [ebx + 1]
mov al, byte [edx]
cmp al, 0x5c
je 0x40f7eb
cmp al, 0x2f
je 0x40f7eb
test al, al
jne 0x40f7f6
mov ebx, edx
test al, al
je 0x40f860
lea ebx, [edx + 1]
jmp 0x40f860
mov edx, esi
test cl, cl
je 0x40f838
mov ecx, 4
mov al, byte [ebx]
cmp al, 0x5c
je 0x40f838
cmp al, 0x2f
je 0x40f838
cmp dword [ebp - 8], esi
jbe 0x40f8af
inc esi
inc ebx
mov byte [esi], al
movzx eax, byte [ebx - 1]
test byte [eax + 0x440b99], cl
je 0x40f833
mov al, byte [ebx]
test al, al
je 0x40f895
cmp dword [ebp - 8], esi
jbe 0x40f895
inc esi
inc ebx
mov byte [esi], al
cmp byte [ebx], 0
jne 0x40f801
cmp dword [ebp - 8], esi
jbe 0x40f8af
cmp edx, esi
je 0x40f8a2
inc esi
mov byte [esi], 0x5c
mov al, byte [ebx]
cmp al, 0x5c
je 0x40f84f
cmp al, 0x2f
jne 0x40f860
push ebx
push dword [ebp - 0x14]
call fcn.00414bf7
add esp, 8
test eax, eax
jne 0x40f860
inc ebx
cmp byte [ebx], 0
jne 0x40f74f
lea eax, [esi - 1]
cmp byte [eax], 0x3a
jne 0x40f880
push eax
push edi
call fcn.00414bf7
add esp, 8
test eax, eax
jne 0x40f880
inc esi
mov eax, dword [ebp - 0xc]
mov byte [esi], 0
jmp 0x40f8dd
call fcn.004123ed
mov dword [eax], 0xd
jmp 0x40f8ba
call fcn.004123ed
mov dword [eax], 0x16
jmp 0x40f8ba
call fcn.004123ed
mov dword [eax], 0x16
jmp 0x40f8ba
call fcn.004123ed
mov dword [eax], 0x22
cmp dword [ebp + 8], 0
jne 0x40f8cb
push dword [ebp - 0xc]
call fcn.004110e4
add esp, 4
xor eax, eax
jmp 0x40f8dd
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040fc0a
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret