Function at 0x706868
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x41
push 0
push 0
dec ecx
jne 0x706870
push ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x707376
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x7068aa
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x7d74b8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6a8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
call fcn.00405278
mov eax, dword [0x7d66a8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x7069c1
inc eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
mov eax, dword [0x7d66a8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x1c]
call fcn.0040a83c
mov eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x70738c
call fcn.0040588c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x2c]
call fcn.004057a8
mov edx, dword [ebp - 0x74]
pop eax
call fcn.00405694
jne 0x7069b5
lea eax, [ebp - 0x2c]
mov edx, 0x70738c
call fcn.00405550
jmp 0x7069a4
mov edx, dword [ebp - 0x2c]
mov eax, 0x70738c
call fcn.0040588c
mov ecx, eax
lea eax, [ebp - 0x2c]
mov edx, 1
call fcn.004057e8
lea eax, [ebp - 0x78]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x70738c
call fcn.0040588c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x2c]
call fcn.004057a8
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x30]
call fcn.0040a348
cmp dword [ebp - 0x30], 0
je 0x7069a4
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x30]
mov dl, byte [edx]
call fcn.00405460
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x38]
call fcn.00405550
mov edx, dword [ebp - 0x2c]
mov eax, 0x70738c
call fcn.0040588c
test eax, eax
jg 0x70693e
inc dword [ebp - 0x18]
dec dword [ebp - 0x64]
jne 0x7068de
lea eax, [ebp - 0x3c]
call fcn.00405278
mov byte [ebp - 0x3e], 0
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0x18]
add edx, 0x40
call fcn.00405460
lea eax, [ebp - 0x80]
mov edx, 0x707398
call fcn.00405550
mov eax, dword [ebp - 0x80]
call fcn.00405748
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffffe
sub eax, 3
jb 0x706a14
sub eax, 1
je 0x706a14
xor eax, eax
jmp 0x706a16
mov al, 1
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
jne 0x706a4c
mov eax, dword [0x7d7390]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c0]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov ecx, eax
mov eax, dword [ebp - 0x18]
add eax, 0x40
mov edx, dword [ebp - 0xc]
call fcn.004afe9c
test al, al
je 0x706a4c
mov byte [ebp - 0x3d], 1
cmp dword [ebp - 0x18], 3
jge 0x706a5c
cmp dword [ebp - 0xc], 3
je 0x706a5c
mov byte [ebp - 0x3d], 0
cmp byte [ebp - 0x3d], 0
je 0x706b28
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x18]
add edx, 0x40
call fcn.00405460
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x3c]
call fcn.00405550
mov eax, dword [ebp - 0x18]
add eax, 0x40
call fcn.00704de8
test al, al
jne 0x706b28
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x18]
add edx, 0x40
call fcn.00405460
mov edx, dword [ebp - 0x88]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jle 0x706b28
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x90]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.00420d88
mov eax, dword [ebp - 0x90]
mov cl, 0x2c
mov edx, 2
call fcn.0049c118
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x10]
call fcn.00406624
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov al, byte [ebp - 0x18]
call fcn.0040b31c
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x44]
jne 0x706b22
cmp eax, dword [ebp - 0x48]
je 0x706b28
mov byte [ebp - 0x3e], 1
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1b
jne 0x7069d4
cmp byte [ebp - 5], 0
jne 0x706b91
push dword [ebp - 0x3c]
push 0x7073a4
push dword [ebp - 0x38]
push 0x7073a4
mov eax, dword [0x7d6448]
push dword [eax]
lea eax, [ebp - 0x94]
mov edx, 5
call fcn.00405608
mov eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov edx, 0x7d5cc4
call fcn.004054ec
mov edx, dword [ebp - 0x98]
pop eax
call fcn.00405694
jne 0x706b91
cmp byte [ebp - 0x3e], 0
je 0x70732b
push dword [ebp - 0x3c]
push 0x7073a4
push dword [ebp - 0x38]
push 0x7073a4
mov eax, dword [0x7d6448]
push dword [eax]
lea eax, [ebp - 0x19c]
mov edx, 5
call fcn.00405608
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 0x198]
mov ecx, 0xff
call fcn.00405524
lea edx, [ebp - 0x198]
mov eax, 0x7d5cc4
mov cl, 0x3c
call fcn.004032bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
call fcn.0045d038
test eax, eax
je 0x706c0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
call fcn.0045d038
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x34]
call fcn.00405310
jmp 0x706c1a
lea eax, [ebp - 0x34]
mov edx, 0x7073b0
call fcn.00405310
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov eax, dword [eax + 0x22c]
call fcn.00459a74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov eax, dword [eax + 0x22c]
call fcn.00459a54
mov byte [ebp - 0x1e], 0
mov dx, 0xfff5
mov eax, dword [0x1224940]
call fcn.00478264
mov eax, dword [ebp - 0x3c]
call fcn.00405548
test eax, eax
jle 0x707251
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov eax, dword [eax + 0x22c]
call fcn.004598f8
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x1a4]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1a4]
lea eax, [ebp - 0x1a8]
call fcn.004032b0
mov edx, 0x7073b4
lea eax, [ebp - 0x1a8]
mov cl, 2
call fcn.00403280
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x1a0]
call fcn.004054ec
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x68]
call fcn.00459378
mov byte [ebp - 0x3f], 1
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx - 1]
call fcn.00704de8
mov byte [ebp - 0x1d], al
cmp byte [ebp - 5], 0
jne 0x706d2f
cmp byte [ebp - 0x1d], 0
jne 0x706d2b
lea eax, [ebp - 0x1ac]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
call fcn.00405460
mov eax, dword [ebp - 0x1ac]
mov edx, dword [0x7d6448]
mov edx, dword [edx]
call fcn.0040588c
test eax, eax
jle 0x706d2f
mov byte [ebp - 0x3f], 0
cmp byte [ebp - 0x3f], 0
je 0x706fbd
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x18]
mov al, byte [eax + ebx - 1]
call fcn.007b7f28
cmp dword [ebp - 0x24], 0
je 0x706d8c
mov eax, dword [ebp - 0x68]
push dword [eax + 0x24]
push 0x7073c0
push dword [ebp - 0x24]
push 0x7073cc
lea eax, [ebp - 0x1b4]
mov edx, 4
call fcn.00405608
mov edx, dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x68]
call fcn.00459378
mov eax, dword [ebp - 0x28]
mov edx, 0x7073b0
call fcn.00405694
je 0x706dcb
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx - 1]
sub al, 0x40
call fcn.0040b350
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx - 1]
sub al, 0x40
call fcn.0040b31c
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
jmp 0x706de7
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
lea eax, [ebp - 0x1b8]
call fcn.0040a928
mov edx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
lea eax, [ebp - 0x1bc]
call fcn.0040a928
mov edx, dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1c0]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
call fcn.00405460
mov edx, dword [ebp - 0x1c0]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jle 0x706e6a
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x1a4]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1a4]
lea eax, [ebp - 0x1a8]
call fcn.004032b0
mov edx, 0x7073d0
lea eax, [ebp - 0x1a8]
mov cl, 2
call fcn.00403280
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x1c8]
call fcn.004054ec
push dword [ebp - 0x1c8]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
lea eax, [ebp - 0x1cc]
call fcn.0040a928
push dword [ebp - 0x1cc]
push 0x7073dc
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
lea eax, [ebp - 0x1d0]
call fcn.0040a928
push dword [ebp - 0x1d0]
lea eax, [ebp - 0x1c4]
mov edx, 4
call fcn.00405608
mov edx, dword [ebp - 0x1c4]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1d4]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
call fcn.00405460
mov edx, dword [ebp - 0x1d4]
mov eax, dword [0x7d74b8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jle 0x706f4e
mov eax, dword [0x7d74b8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x1a4]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1a4]
lea eax, [ebp - 0x1a8]
call fcn.004032b0
mov edx, 0x7073d0
lea eax, [ebp - 0x1a8]
mov cl, 2
call fcn.00403280
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x1d8]
call fcn.004054ec
lea eax, [ebp - 0x1d8]
mov edx, dword [ebp - 0x24]
call fcn.00405550
mov edx, dword [ebp - 0x1d8]
mov eax, dword [0x7d74b8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x7071cf
cmp byte [ebp - 0x1d], 0
je 0x706fef
lea eax, [ebp - 0x1dc]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
call fcn.00405460
mov edx, dword [ebp - 0x1dc]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x14], eax
jmp 0x706ff6
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0x14], 0xffffffff
jle 0x707139
lea eax, [ebp - 0x1e0]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
call fcn.00405460
mov edx, dword [ebp - 0x1e0]
mov eax, dword [0x7d74b8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jle 0x7070b6
lea ecx, [ebp - 0x24]
mov eax, dword [0x7d74b8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.00420d88
cmp dword [ebp - 0x24], 0
je 0x7070b6
mov eax, dword [ebp - 0x24]
call fcn.00405548
cmp eax, 0xb
jle 0x707085
lea eax, [ebp - 0x1e4]
push eax
mov ecx, 9
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.004057a8
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x24]
mov ecx, 0x7073e8
call fcn.00405594
mov eax, dword [ebp - 0x68]
push dword [eax + 0x24]
push 0x7073c0
push dword [ebp - 0x24]
push 0x7073cc
lea eax, [ebp - 0x1e8]
mov edx, 4
call fcn.00405608
mov edx, dword [ebp - 0x1e8]
mov eax, dword [ebp - 0x68]
call fcn.00459378
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x1f0]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.00420d88
mov eax, dword [ebp - 0x1f0]
mov cl, 0x2c
mov edx, 1
call fcn.0049c118
mov edx, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x1f8]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.00420d88
mov eax, dword [ebp - 0x1f8]
mov cl, 0x2c
mov edx, 2
call fcn.0049c118
mov edx, dword [ebp - 0x1f4]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x7071cf
mov edx, 0x7073f4
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x7073f4
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1fc]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
call fcn.00405460
mov edx, dword [ebp - 0x1fc]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jle 0x707198
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x200]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dl, byte [edx + ecx - 1]
call fcn.00405460
lea eax, [ebp - 0x200]
mov edx, 0x707400
call fcn.00405550
mov edx, dword [ebp - 0x200]
mov eax, dword [0x7d6acc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x204]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.004057a8
mov eax, dword [ebp - 0x204]
push eax
lea eax, [ebp - 0x208]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x24]
call fcn.004057a8
mov edx, dword [ebp - 0x208]
pop eax
call fcn.00405694
jne 0x707245
mov cl, 1
mov edx, 3
mov eax, dword [ebp - 0x68]
call fcn.004594c0
mov cl, 1
mov edx, 2
mov eax, dword [ebp - 0x68]
call fcn.004594c0
xor edx, edx
mov eax, dword [ebp - 0x68]
call fcn.004592a8
mov byte [ebp - 0x1e], 1
inc dword [ebp - 0x18]
dec dword [ebp - 0x64]
jne 0x706c6e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov eax, dword [eax + 0x22c]
call fcn.00459c50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x410]
mov eax, dword [eax + 0x22c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.00719a68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x674]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x410]
call fcn.006dbf00
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x410]
mov edx, dword [ebp - 0x18]
call fcn.006dbee8
xor edx, edx
mov eax, dword [0x1224940]
call fcn.00478264
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov eax, dword [eax + 0x22c]
call fcn.00459960
test eax, eax
jne 0x7072e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov eax, dword [eax + 0x22c]
call fcn.00459a54
jmp 0x70732b
cmp byte [ebp - 0x1e], 0
jne 0x70732b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov eax, dword [eax + 0x22c]
xor edx, edx
call fcn.00459990
mov dword [ebp - 0x6c], eax
mov cl, 1
mov edx, 3
mov eax, dword [ebp - 0x6c]
call fcn.004594c0
mov cl, 1
mov edx, 2
mov eax, dword [ebp - 0x6c]
call fcn.004594c0
xor edx, edx
mov eax, dword [ebp - 0x6c]
call fcn.004592a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70737d
lea eax, [ebp - 0x208]
mov edx, 0x18
call fcn.0040529c
lea eax, [ebp - 0x1a0]
mov edx, 2
call fcn.0040529c
lea eax, [ebp - 0x98]
mov edx, 0xb
call fcn.0040529c
lea eax, [ebp - 0x3c]
mov edx, 7
call fcn.0040529c
ret