Function at 0x68cd7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x68cd84
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x68d458
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], 0
mov eax, dword [esi]
cmp byte [eax + 0xce], 0
jne 0x68cdd6
mov eax, dword [ebp - 8]
call fcn.00684c40
call fcn.0040aba4
call fcn.0040b184
mov eax, dword [esi]
fstp qword [eax + 0xe0]
wait
jmp 0x68cde4
call fcn.0040c404
mov eax, dword [esi]
fstp qword [eax + 0xe0]
wait
mov eax, dword [esi]
call fcn.0068d510
test eax, eax
jle 0x68ce29
mov eax, dword [esi]
mov eax, dword [eax + 0xdc]
test eax, eax
je 0x68ce12
mov edx, dword [esi]
cmp byte [edx + 0x2c], 7
je 0x68ce12
call fcn.00403260
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xdc], edx
mov eax, dword [esi]
mov eax, dword [eax + 0xd8]
call fcn.00403260
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xd8], edx
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
mov edx, dword [ebp - 8]
call fcn.006845a4
mov ebx, eax
test bl, bl
jne 0x68ced6
mov eax, dword [esi]
cmp byte [eax + 0xce], 0
jne 0x68ced6
lea edx, [ebp - 0x30]
mov eax, dword [esi]
call fcn.0068bc6c
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x68d470
call fcn.0040ae38
mov eax, dword [ebp - 0x2c]
call fcn.0040ab94
test al, al
je 0x68ced6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x38]
mov eax, dword [esi]
call fcn.0068bc6c
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 0x68d470
call fcn.0040ae38
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x412984]
call fcn.00416864
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
mov edx, dword [ebp - 8]
call fcn.006845a4
mov ebx, eax
test bl, bl
je 0x68cec8
mov byte [ebp - 0x21], 1
jmp 0x68ced6
mov eax, dword [ebp - 8]
call fcn.00403260
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
test bl, bl
jne 0x68cfbd
mov eax, dword [esi]
cmp byte [eax + 0x17c], 0
jne 0x68cf5c
mov eax, dword [esi]
cmp word [eax + 0x8a], 0
je 0x68cf0a
mov eax, dword [esi]
lea ecx, [eax + 0x3c]
mov ebx, dword [esi]
mov edx, dword [esi]
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
mov eax, dword [esi]
cmp byte [eax + 0x3c], 2
jne 0x68cf33
lea edx, [ebp - 0x3c]
mov eax, 0xb7
call fcn.0040aa2c
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x6861ac]
call fcn.0040e274
call fcn.00403ab8
mov eax, dword [esi]
cmp byte [eax + 0x3c], 0
jne 0x68cf5c
lea edx, [ebp - 0x40]
mov eax, 0xb6
call fcn.0040aa2c
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x686150]
call fcn.0040e274
call fcn.00403ab8
mov eax, dword [esi]
cmp byte [eax + 0x3c], 1
je 0x68cf73
mov eax, dword [esi]
cmp byte [eax + 0x17c], 0
je 0x68d187
push ebp
call fcn.0068c9e0
pop ecx
test al, al
jne 0x68d187
mov eax, dword [0x9b8cac]
mov eax, dword [eax]
xor edx, edx
call fcn.0045957c
mov eax, dword [esi]
call fcn.0068c880
lea edx, [ebp - 0x44]
mov eax, 0xb7
call fcn.0040aa2c
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x6860f8]
call fcn.0040e274
call fcn.00403ab8
jmp 0x68d187
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
movzx eax, word [eax + 8]
mov edx, dword [esi]
mov dword [edx + 0xec], eax
cmp byte [ebp - 0x21], 0
je 0x68cfe1
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xec], edx
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
cmp word [eax + 8], 0
jbe 0x68d04a
lea ecx, [ebp - 0x48]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov edx, 3
call fcn.006855ec
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x1c]
call fcn.0040a27c
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x68d021
mov dl, 2
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x68d053
lea eax, [ebp - 0x1c]
call fcn.00685c98
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x68d03f
mov dl, 1
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x68d053
mov dl, 2
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x68d053
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
cmp word [eax + 0xe], 0
jbe 0x68d187
cmp byte [ebp - 0x21], 0
jne 0x68d0a4
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x68d0a4
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
movzx eax, word [eax + 0xa]
mov edx, dword [esi]
cmp eax, dword [edx + 0xec]
je 0x68d0a4
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [esi]
call fcn.0068c710
mov dword [ebp - 8], eax
cmp byte [ebp - 0x21], 0
je 0x68d0b8
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x68d0cd
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 4]
cmp dword [ebp - 0x18], 0x2014b50
je 0x68d176
mov eax, dword [esi]
cmp word [eax + 0x8a], 0
je 0x68d10b
mov eax, dword [esi]
lea ecx, [eax + 0x3c]
mov ebx, dword [esi]
mov edx, dword [esi]
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
mov eax, dword [esi]
cmp byte [eax + 0x3c], 1
je 0x68d11e
mov eax, dword [esi]
cmp byte [eax + 0x17c], 0
je 0x68d153
push ebp
call fcn.0068c9e0
pop ecx
test al, al
jne 0x68d187
mov eax, dword [esi]
call fcn.0068c880
lea edx, [ebp - 0x4c]
mov eax, 0xb7
call fcn.0040aa2c
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x6860f8]
call fcn.0040e274
call fcn.00403ab8
jmp 0x68d187
lea edx, [ebp - 0x50]
mov eax, 0xb7
call fcn.0040aa2c
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x6860f8]
call fcn.0040e274
call fcn.00403ab8
jmp 0x68d187
mov cx, 1
mov edx, 0xfffffffc
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [esi]
call fcn.0068d510
test eax, eax
jne 0x68d1b6
mov cl, 2
mov dl, 1
mov eax, dword [0x6836b8]
call fcn.00684774
mov ebx, eax
mov eax, dword [esi]
mov dword [eax + 0xd8], ebx
mov byte [ebx + 0x18], 7
mov eax, dword [esi]
mov dword [eax + 0xdc], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
movzx eax, word [eax + 0xe]
dec eax
test eax, eax
jl 0x68d38f
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
mov dl, 1
mov eax, dword [0x683500]
call fcn.00683784
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
cmp byte [eax + 0xe8], 0
jne 0x68d1fb
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x68d20e
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00683f70
mov ebx, eax
jmp 0x68d223
mov eax, dword [esi]
push eax
push 0x68c85c
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00683f70
mov ebx, eax
test bl, bl
jne 0x68d2b5
mov eax, dword [esi]
cmp word [eax + 0x8a], 0
je 0x68d24c
mov eax, dword [esi]
lea ecx, [eax + 0x3c]
mov ebx, dword [esi]
mov edx, dword [esi]
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
mov eax, dword [esi]
cmp byte [eax + 0x3c], 1
je 0x68d25f
mov eax, dword [esi]
cmp byte [eax + 0x17c], 0
je 0x68d294
push ebp
call fcn.0068c9e0
pop ecx
test al, al
jne 0x68d2b5
mov eax, dword [esi]
call fcn.0068c880
lea edx, [ebp - 0x54]
mov eax, 0xb7
call fcn.0040aa2c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x6860f8]
call fcn.0040e274
call fcn.00403ab8
jmp 0x68d2b5
lea edx, [ebp - 0x58]
mov eax, 0xb7
call fcn.0040aa2c
mov ecx, dword [ebp - 0x58]
mov dl, 1
mov eax, dword [0x6860f8]
call fcn.0040e274
call fcn.00403ab8
mov eax, dword [esi]
cmp byte [eax + 0xe8], 0
je 0x68d322
lea ecx, [ebp - 0x14]
mov eax, dword [esi]
mov eax, dword [eax + 0xd8]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
test al, al
je 0x68d313
mov eax, dword [esi]
mov eax, dword [eax + 0xd8]
mov edx, dword [ebp - 0x14]
call fcn.00682284
mov edx, dword [0x683500]
call fcn.004033f0
mov ebx, eax
mov edi, dword [ebx + 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebx + 0x2c], edi
mov eax, dword [ebp - 0xc]
call fcn.00403260
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x68d322
mov eax, dword [ebp - 0xc]
call fcn.00403260
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x68d383
mov eax, dword [esi]
cmp byte [eax + 0xe8], 0
jne 0x68d33d
mov eax, dword [esi]
mov eax, dword [eax + 0xd8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
cmp word [eax + 8], 0
jbe 0x68d365
mov eax, dword [ebp - 0xc]
call fcn.006841d0
test al, al
je 0x68d365
lea ecx, [ebp - 0x5c]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.0068c004
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [esi]
movzx eax, word [eax + 0x136]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x68d1d6
mov eax, dword [esi]
mov ebx, dword [eax + 0x144]
cmp word [ebx + 8], 0
jbe 0x68d3dd
mov eax, ebx
call fcn.006846fc
test al, al
je 0x68d3dd
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
mov ax, word [eax + 8]
movzx edx, ax
mov ecx, dword [esi]
cmp edx, dword [ecx + 0xec]
je 0x68d3d3
cmp byte [ebp - 0x21], 0
jne 0x68d3d3
movzx edx, ax
inc edx
mov eax, dword [esi]
call fcn.0068c710
lea edx, [ebp - 0x60]
mov eax, dword [esi]
call fcn.0068c1b0
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
movzx eax, word [eax + 8]
inc eax
mov edx, dword [esi]
mov dword [edx + 0x40], eax
cmp byte [ebp - 0x21], 0
jne 0x68d40b
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
movzx eax, word [eax + 8]
mov edx, dword [esi]
mov dword [edx + 0xec], eax
jmp 0x68d415
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xec], edx
mov eax, dword [esi]
mov dl, byte [eax + 0x2c]
mov eax, dword [esi]
call fcn.0068d478
cmp byte [ebp - 0x21], 0
je 0x68d435
mov eax, dword [ebp - 8]
call fcn.00403260
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68d45f
lea eax, [ebp - 0x60]
mov edx, 0xe
call fcn.004040ac
lea eax, [ebp - 0x1c]
call fcn.00404088
ret