Function at 0x61fa2c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 0x6fa5d0
mov dword [ebp - 0x30], esp
mov eax, 0x56498f
mov dword [ebp - 0x38], eax
mov esi, edx
mov word [ebp - 0x2c], 0
xor edx, edx
mov dword [ebp - 0x20], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x3c]
mov dword fs:[0], eax
xor edx, edx
mov dword [ebp - 0x44], edx
cmp dword [esi], 0
je 0x61fa91
mov eax, dword [esi]
test eax, eax
jne 0x61fa81
xor ecx, ecx
jmp 0x61fa97
cmp dword [eax + 4], 0
je 0x61fa8c
mov ecx, dword [eax + 4]
jmp 0x61fa97
lea ecx, [eax + 8]
jmp 0x61fa97
mov ecx, dword [0x6a9384]
mov dword [ebp - 0x48], ecx
mov eax, dword [0x6fa379]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi]
test eax, eax
jne 0x61faac
xor edx, edx
jmp 0x61faaf
mov edx, dword [eax + 0x34]
cmp edx, 2
jl 0x61fb88
cmp dword [esi], 0
jne 0x61fac1
xor ecx, ecx
jmp 0x61fadd
mov eax, dword [esi]
test eax, eax
jne 0x61facb
xor edx, edx
jmp 0x61fad9
cmp dword [eax + 4], 0
je 0x61fad6
mov edx, dword [eax + 4]
jmp 0x61fad9
lea edx, [eax + 8]
mov cx, word [edx + 2]
cmp cx, 0x3a
jne 0x61fb88
mov byte [ebp - 0x4f], 0x3a
mov byte [ebp - 0x4e], 0x5c
mov byte [ebp - 0x4d], 0
mov byte [ebp - 0x50], 0x41
xor ebx, ebx
jmp 0x61fb4e
lea eax, [ebp - 0x50]
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 5
jne 0x61fb4b
movsx edx, byte [ebp - 0x50]
and edx, 0x1f
cmp dword [esi], 0
jne 0x61fb19
xor ecx, ecx
jmp 0x61fb34
mov eax, dword [esi]
test eax, eax
jne 0x61fb23
xor ecx, ecx
jmp 0x61fb31
cmp dword [eax + 4], 0
je 0x61fb2e
mov ecx, dword [eax + 4]
jmp 0x61fb31
lea ecx, [eax + 8]
mov cx, word [ecx]
movzx eax, cx
and eax, 0x1f
cmp edx, eax
jne 0x61fb48
mov bl, 1
mov al, byte [ebp - 0x50]
mov byte [ebp - 0x4c], al
jmp 0x61fb57
inc dword [ebp - 0x44]
inc byte [ebp - 0x50]
movsx edx, byte [ebp - 0x50]
cmp edx, 0x5a
jle 0x61fafb
test bl, bl
jne 0x61fb7f
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.0061d300
cmp dword [0x7bfc2c], 0
je 0x61fb75
mov eax, dword [0x7bfc2c]
jmp 0x61fb7a
mov eax, dword [0x7bfc28]
call fcn.0066883c
add dword [ebp - 0x48], 4
jmp 0x61fd40
mov dl, 1
mov eax, dword [0x4927ac]
call fcn.004928ac
mov dword [ebp - 0x54], eax
mov edx, 0x80000002
mov eax, dword [ebp - 0x54]
call fcn.00696660
xor edx, edx
lea eax, [ebp - 4]
mov dword [ebp - 0x58], edx
mov edx, str.SystemCurrentControlSetControlMediaResourcesmcicdaudio
mov word [ebp - 0x2c], 8
call fcn.0069669c
inc dword [ebp - 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [ebp - 0x54]
call fcn.004929b0
and eax, 0xff
cmp eax, 1
lea eax, [ebp - 4]
sbb edx, edx
neg edx
push edx
mov edx, 2
dec dword [ebp - 0x20]
call fcn.00696870
pop ecx
test cl, cl
je 0x61fc1f
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x61fc15
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov word [ebp - 0x2c], 0x20
mov edx, 3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x14
xor edx, edx
xor eax, eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x54], 0
je 0x61fcc0
mov word [ebp - 0x2c], 0x2c
push 4
mov edx, str.Default_Drive
mov word [ebp - 0x2c], 0x38
lea eax, [ebp - 0x10]
call fcn.0069669c
inc dword [ebp - 0x20]
mov edx, dword [eax]
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x54]
call fcn.00492bd8
cmp eax, 4
lea eax, [ebp - 0x10]
setne dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x20]
call fcn.00696870
pop ecx
test cl, cl
je 0x61fc78
xor eax, eax
mov dword [ebp - 0x58], eax
mov word [ebp - 0x2c], 0
jmp 0x61fc90
mov eax, dword [ebp - 0x54]
call fcn.0049291c
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x61fcc0
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov word [ebp - 0x2c], 0x50
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x44
mov byte [ebp - 0x5b], 0x3a
mov byte [ebp - 0x5a], 0x5c
mov byte [ebp - 0x59], 0
mov byte [ebp - 0x5d], 0
mov byte [ebp - 0x5c], 0x41
mov bl, 0x20
xor esi, esi
jmp 0x61fd07
lea eax, [ebp - 0x5c]
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 5
jne 0x61fd04
test esi, esi
jne 0x61fcef
mov bl, byte [ebp - 0x5c]
cmp esi, dword [ebp - 0x58]
jne 0x61fd03
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x4c], al
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x5d], 1
jmp 0x61fd10
inc esi
inc byte [ebp - 0x5c]
movsx edx, byte [ebp - 0x5c]
cmp edx, 0x5a
jle 0x61fcda
cmp byte [ebp - 0x5d], 0
jne 0x61fd40
movsx ecx, bl
cmp ecx, 0x20
jne 0x61fd38
cmp dword [0x7bfc38], 0
je 0x61fd2e
mov eax, dword [0x7bfc38]
jmp 0x61fd33
mov eax, dword [0x7bfc34]
call fcn.0066883c
mov byte [ebp - 0x4c], bl
xor edx, edx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x48]
call fcn.0043a6fc
mov esi, eax
mov eax, dword [ebp - 0x40]
call fcn.0061ffd4
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0061d300
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x24]
cmp ecx, dword [ebp - 0x44]
je 0x61fef0
mov eax, dword [ebp - 0x40]
call fcn.0061ff28
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
lea edi, [ebp - 0x4c]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0x40]
push esi
add eax, 0x2c
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [ebp - 0x40]
call fcn.00620498
push 0x14
push 0
lea edx, [ebp - 0x7c]
push edx
call fcn.0056420c
add esp, 0xc
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x74], 0x204
mov dword [ebp - 0x70], ecx
lea eax, [ebp - 0x7c]
push eax
push 0x3302
push 0x803
push 0
call fcn.006a68b2
mov ebx, eax
test ebx, ebx
jne 0x61fec1
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x78]
mov dword [edx + 0x34], eax
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x84], 0xa
mov dword [ebp - 0x80], edx
push ecx
push 0x402
push 0x80d
push eax
call fcn.006a68b2
mov ebx, eax
test ebx, ebx
je 0x61fe50
push 4
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.0056420c
add esp, 0xc
lea edx, [ebp - 0x64]
push edx
push 2
push 0x804
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x34]
push eax
call fcn.006a68b2
jmp 0x61fec1
push 0x10
push 0
lea edx, [ebp - 0x98]
push edx
call fcn.0056420c
add esp, 0xc
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x90], 3
push ecx
push 0x102
push 0x814
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x34]
push edx
call fcn.006a68b2
test eax, eax
je 0x61feb5
push 4
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.0056420c
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 2
push 0x804
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x34]
push ecx
call fcn.006a68b2
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x94]
mov dword [eax + 0x28], edx
test ebx, ebx
je 0x61fede
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.0061d300
mov eax, dword [ebp - 0x40]
call fcn.00620554
mov eax, ebx
call fcn.0061f898
mov eax, dword [ebp - 0x40]
call fcn.00620554
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0061d300
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x30], esi
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret