Function at 0x85c63c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11c
push 0
push 0
dec ecx
jne 0x85c645
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, 0xf0
lea eax, [ebp - 0x804]
mov edx, dword [0x401104]
call fcn.00405e2c
xor eax, eax
push ebp
push 0x85ce0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.0040528c
lea eax, [ebp - 0x3c]
call fcn.0040528c
cmp byte [ebp - 9], 0
je 0x85c6a3
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041ff84
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x893580]
cmp dword [eax], 2
jne 0x85cdad
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*4 - 0x804]
call fcn.0040528c
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xf0
jne 0x85c6c0
lea eax, [ebp - 0x444]
push eax
push 0x400
call sub.kernel32.dll_GetLogicalDriveStringsA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x85cdad
lea eax, [ebp - 0x444]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
call fcn.0040528c
jmp 0x85c780
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x42
jbe 0x85c74c
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x85c72c
cmp dword [ebp - 0x20], 2
jne 0x85c77c
lea eax, [ebp - 0x808]
mov edx, dword [ebp - 0x24]
mov dl, byte [edx]
call fcn.00405474
mov edx, dword [ebp - 0x808]
lea eax, [ebp - 0x34]
call fcn.00405554
jmp 0x85c77c
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jne 0x85c77c
lea eax, [ebp - 0x80c]
mov edx, dword [ebp - 0x24]
mov dl, byte [edx]
call fcn.00405474
mov edx, dword [ebp - 0x80c]
lea eax, [ebp - 0x34]
call fcn.00405554
add dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0
jne 0x85c70c
mov eax, dword [ebp - 0x34]
call fcn.0040554c
test eax, eax
jle 0x85cb94
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + edx - 1]
call fcn.00402cd8
cmp al, 0x47
jne 0x85c833
lea eax, [ebp - 0x814]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x814]
lea eax, [ebp - 0x818]
call fcn.004032c4
mov edx, 0x85ce20
lea eax, [ebp - 0x818]
mov cl, 2
call fcn.00403294
lea edx, [ebp - 0x818]
lea eax, [ebp - 0x810]
call fcn.004054f0
mov eax, dword [ebp - 0x810]
lea edx, [ebp - 0x38]
call fcn.0061b000
lea edx, [ebp - 0x81c]
mov eax, dword [ebp - 0x38]
call fcn.0040a048
mov edx, dword [ebp - 0x81c]
mov eax, 0x85ce2c
call fcn.00405890
test eax, eax
jg 0x85cb88
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + edx - 1]
call fcn.00402cd8
cmp al, 0x58
jne 0x85c8c4
lea eax, [ebp - 0x814]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x814]
lea eax, [ebp - 0x818]
call fcn.004032c4
mov edx, 0x85ce20
lea eax, [ebp - 0x818]
mov cl, 2
call fcn.00403294
lea edx, [ebp - 0x818]
lea eax, [ebp - 0x820]
call fcn.004054f0
mov eax, dword [ebp - 0x820]
lea edx, [ebp - 0x38]
call fcn.0061b000
lea edx, [ebp - 0x824]
mov eax, dword [ebp - 0x38]
call fcn.0040a048
mov edx, dword [ebp - 0x824]
mov eax, 0x85ce44
call fcn.00405890
test eax, eax
jg 0x85cb88
lea eax, [ebp - 0x814]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x814]
lea eax, [ebp - 0x818]
call fcn.004032c4
mov edx, 0x85ce20
lea eax, [ebp - 0x818]
mov cl, 2
call fcn.00403294
lea edx, [ebp - 0x818]
lea eax, [ebp - 0x828]
call fcn.004054f0
mov eax, dword [ebp - 0x828]
lea edx, [ebp - 0x28]
call fcn.00608610
mov eax, dword [0x89235c]
cmp byte [eax], 1
ja 0x85c93e
mov eax, dword [0x892f64]
cmp byte [eax], 1
ja 0x85c93e
mov eax, dword [0x892c38]
cmp byte [eax], 0
jbe 0x85c9f8
lea eax, [ebp - 0x2c]
call fcn.0040528c
mov dl, 0x2c
mov eax, dword [ebp - 0x28]
call fcn.004bcc40
test eax, eax
jle 0x85c9cb
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x30]
push eax
mov cl, 0x2c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.004bccbc
or edx, 0xffffffff
mov eax, dword [ebp - 0x30]
call fcn.0040a934
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.005e80b4
test eax, eax
jle 0x85c991
lea eax, [ebp - 0x30]
call fcn.0040528c
mov eax, dword [ebp - 0x10]
call fcn.005e82ac
test eax, eax
jle 0x85c9a5
lea eax, [ebp - 0x30]
call fcn.0040528c
cmp dword [ebp - 0x30], 0
je 0x85c9c3
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x85ce54
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040560c
inc dword [ebp - 0x20]
dec dword [ebp - 0x44]
jne 0x85c95e
mov eax, dword [ebp - 0x2c]
call fcn.0040554c
dec eax
jle 0x85c9ed
mov eax, dword [ebp - 0x2c]
call fcn.0040554c
mov edx, eax
lea eax, [ebp - 0x2c]
mov ecx, 1
call fcn.004057ec
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
call fcn.00405324
mov eax, dword [0x8935b8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jle 0x85ca83
or edx, 0xffffffff
mov eax, dword [ebp - 0x28]
call fcn.0040a934
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x85ca83
mov eax, dword [0x89285c]
mov eax, dword [eax]
dec eax
cmp eax, dword [ebp - 0x14]
jl 0x85ca83
lea eax, [ebp - 0x830]
imul edx, dword [ebp - 0x14], 0x83
mov ecx, dword [0x892da8]
lea edx, [ecx + edx]
call fcn.004054f0
mov eax, dword [ebp - 0x830]
lea edx, [ebp - 0x82c]
call fcn.0040a048
mov edx, dword [ebp - 0x82c]
mov eax, 0x85ce60
call fcn.00405890
test eax, eax
jle 0x85ca83
lea ecx, [ebp - 0x28]
mov eax, dword [0x8935b8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
call fcn.00420e20
mov dl, 0x2c
mov eax, dword [ebp - 0x28]
call fcn.004bcc40
test eax, eax
jle 0x85cb88
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x834]
push eax
mov cl, 0x2c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.004bccbc
mov eax, dword [ebp - 0x834]
lea edx, [ebp - 0x18]
call fcn.004038b4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x85cb7c
mov eax, dword [0x89285c]
mov eax, dword [eax]
dec eax
cmp eax, dword [ebp - 0x14]
jl 0x85cb7c
lea eax, [ebp - 0x8c0]
push eax
imul eax, dword [ebp - 0x14], 0x83
mov edx, dword [0x892da8]
lea eax, [edx + eax]
mov ecx, 4
mov edx, 1
call fcn.004029c0
lea edx, [ebp - 0x8c0]
lea eax, [ebp - 0x83c]
call fcn.004054f0
mov eax, dword [ebp - 0x83c]
lea edx, [ebp - 0x838]
call fcn.0040a048
mov eax, dword [ebp - 0x838]
mov edx, 0x85ce78
call fcn.00405698
jne 0x85cb7c
mov eax, dword [ebp - 0x14]
push dword [ebp + eax*4 - 0x804]
push 0x85ce88
lea eax, [ebp - 0x8c4]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [edx + ecx - 1]
call fcn.00405474
push dword [ebp - 0x8c4]
push 0x85ce94
mov eax, dword [ebp - 0x14]
lea eax, [ebp + eax*4 - 0x804]
mov edx, 4
call fcn.0040560c
inc dword [ebp - 0x20]
dec dword [ebp - 0x44]
jne 0x85ca9f
inc dword [ebp - 0x1c]
dec dword [ebp - 0x40]
jne 0x85c7a2
xor eax, eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x804]
call fcn.0040a298
cmp dword [ebp - 0x28], 0
je 0x85cbed
lea edx, [ebp - 0x8cc]
mov eax, dword [ebp - 0x1c]
call fcn.0040a78c
push dword [ebp - 0x8cc]
push 0x85ce88
push dword [ebp - 0x28]
lea eax, [ebp - 0x8c8]
mov edx, 3
call fcn.0040560c
mov edx, dword [ebp - 0x8c8]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xf0
jne 0x85cb99
cmp byte [ebp - 9], 0
je 0x85ccf9
mov dword [ebp - 0x1c], 0x41
lea eax, [ebp - 0x814]
mov edx, dword [ebp - 0x1c]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x814]
lea eax, [ebp - 0x818]
call fcn.004032c4
mov edx, 0x85ce20
lea eax, [ebp - 0x818]
mov cl, 2
call fcn.00403294
lea edx, [ebp - 0x818]
lea eax, [ebp - 0x8d0]
call fcn.004054f0
mov eax, dword [ebp - 0x8d0]
mov edx, dword [ebp - 0x3c]
call fcn.00405890
test eax, eax
jle 0x85ccec
lea edx, [ebp - 0x8d4]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041ff84
mov eax, dword [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x814]
mov edx, dword [ebp - 0x1c]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x814]
lea eax, [ebp - 0x818]
call fcn.004032c4
mov edx, 0x85ce20
lea eax, [ebp - 0x818]
mov cl, 2
call fcn.00403294
lea edx, [ebp - 0x818]
lea eax, [ebp - 0x8d8]
call fcn.004054f0
mov eax, dword [ebp - 0x8d8]
pop edx
call fcn.00405890
test eax, eax
jne 0x85ccec
lea eax, [ebp - 0x8dc]
mov edx, dword [ebp - 0x1c]
call fcn.00405474
mov edx, dword [ebp - 0x8dc]
mov eax, dword [ebp + 8]
call fcn.00405554
mov eax, dword [ebp + 8]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x5b
jne 0x85cc0a
push 0
mov eax, 0x152a6dc
xor ecx, ecx
xor edx, edx
call fcn.0061a19c
xor eax, eax
push ebp
push 0x85cda3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x892760]
call fcn.0061c288
mov eax, dword [0x892760]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x85cd99
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], 0
push 0x85cea0
lea edx, [ebp - 0x8e4]
mov eax, dword [ebp - 0x1c]
call fcn.0040a78c
push dword [ebp - 0x8e4]
push 0x85ceb0
lea ecx, [ebp - 0x8e8]
mov eax, dword [0x892760]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x8e8]
lea eax, [ebp - 0x8e0]
mov edx, 4
call fcn.0040560c
mov eax, dword [ebp - 0x8e0]
call fcn.004c938c
inc dword [ebp - 0x1c]
dec dword [ebp - 0x40]
jne 0x85cd3d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x85cdad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x85ce15
lea eax, [ebp - 0x8e8]
mov edx, 0xa
call fcn.004052b0
lea eax, [ebp - 0x83c]
mov edx, 9
call fcn.004052b0
lea eax, [ebp - 0x810]
mov edx, 3
call fcn.004052b0
lea eax, [ebp - 0x804]
mov ecx, 0xf0
mov edx, dword [0x401104]
call fcn.00405f18
lea eax, [ebp - 0x3c]
mov edx, 6
call fcn.004052b0
ret