Function at 0x10086119
Capabilities:
Get disk information
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push 0x100e392c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
movsx cx, byte [eax]
or dword [ebp - 0x5c], 0xffffffff
or dword [ebp - 0x58], 0xffffffff
xor esi, esi
mov si, word [eax]
mov word [eax], cx
push 0x64
lea ecx, [ebp - 0x3c]
mov edi, esi
and edi, 0x100
mov dword [ebp - 0x60], edi
call fcn.10046141
xor ebx, ebx
xor al, al
cmp edi, ebx
je 0x10086166
inc al
test si, 0x200
je 0x1008616f
or al, 1
push dword [ebp + 8]
or al, 1
mov byte [ebp - 0x64], al
call fcn.100433e2
test ax, ax
pop ecx
je 0x1008618c
mov esi, 0x40000000
jmp 0x10086615
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [0x100d24e4]
mov esi, 0x100d24dc
lea edi, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [0x100d24e8]
push 0x10f960
lea ecx, [ebp - 0x18]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], eax
call fcn.10045fcc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
cmp word [eax], bx
push 1
lea ecx, [edx + 0x100000]
push edx
push ecx
setne byte [ebp - 1]
mov word [eax], bx
call fcn.10055460
mov al, byte [ebp - 1]
add esp, 0xc
neg al
mov edi, 0x3e80
mov dword [ebp - 0x28], ebx
sbb eax, eax
and eax, edi
mov esi, eax
xor eax, eax
cmp byte [ebp - 1], bl
mov dword [ebp - 0xc], esi
sete al
cmp esi, edi
lea eax, [eax + eax - 1]
mov dword [ebp - 0x40], eax
jge 0x1008660b
shl eax, 8
mov dword [ebp - 0x6c], eax
lea eax, [esi + 1]
shl eax, 8
mov dword [ebp - 0x34], eax
cmp esi, ebx
jl 0x1008660b
push esi
lea eax, [ebp - 0x210]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x10]
call fcn.10005b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x100865cb
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
mov dword [ebp - 0x28], ebx
call fcn.100566f2
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x70], edx
push edi
mov dword [ebp - 0x44], ebx
call fcn.100437ab
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x100865d4
xor eax, eax
cmp dword [esi], 1
push 0x200
sete al
push edi
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x48], eax
call fcn.1004342a
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
add eax, 0x103960
cmp dword [ebp - 0x30], ebx
lea edx, [eax + ecx*2]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x78], edx
je 0x100862f0
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1004af4c
add esp, 0x24
mov cl, byte [ebp - 1]
mov eax, dword [ebp - 0x44]
neg cl
lea edx, [eax - 1]
sbb ecx, ecx
and ecx, edx
cmp ecx, eax
mov dword [ebp - 0x38], ecx
jge 0x100865d4
mov eax, dword [ebp - 0x40]
lea eax, [eax + eax*8]
shl eax, 4
mov dword [ebp - 0x4c], eax
lea eax, [ecx + ecx*8]
shl eax, 4
lea edi, [eax + esi + 0x48]
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x30], ebx
je 0x10086331
mov dword [ebp - 8], 0xff07
jmp 0x10086338
movzx eax, byte [edi + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x30], ebx
movsx eax, word [edi]
mov dword [ebp - 0x14], eax
jne 0x10086360
cmp dword [ebp - 8], ebx
je 0x10086597
cmp dword [ebp - 8], 5
je 0x10086597
cmp dword [ebp - 8], 0xf
je 0x10086597
cmp dword [edi - 4], ebx
jg 0x1008639b
jl 0x10086370
cmp dword [edi - 8], 0x200
ja 0x1008639b
test byte [ebp - 8], 0x10
je 0x10086597
push ebx
push ebx
push 1
push 1
push ebx
push eax
mov eax, dword [ebp - 0x18]
push dword [ebp - 0xc]
add eax, 0x100000
push eax
call fcn.10043478
add esp, 0x20
jmp 0x10086597
mov eax, dword [edi - 0x10]
cmp eax, dword [ebp - 0x74]
mov ecx, dword [edi - 0xc]
jne 0x100863af
cmp ecx, dword [ebp - 0x70]
je 0x10086597
cmp eax, dword [ebp - 0x5c]
jne 0x100863bd
cmp ecx, dword [ebp - 0x58]
je 0x10086597
or dword [ebp - 0x24], 0xffffffff
xor ecx, ecx
mov esi, dword [ebp - 0x18]
movsx eax, cx
imul eax, eax, 0x220
add esi, 0x100000
add eax, esi
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0xc]
jne 0x100863e6
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
je 0x100863ef
inc ecx
cmp cx, 0x1a
jl 0x100863c3
jmp 0x100863f2
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
je 0x10086413
push 1
push dword [ebp - 0x68]
lea eax, [edi - 0x18]
push dword [ebp - 0x48]
push dword [ebp - 0x78]
push eax
call fcn.1004acf5
add esp, 0x14
jmp 0x10086429
mov eax, dword [ebp - 0x38]
cmp eax, 3
jg 0x1008641e
inc eax
jmp 0x10086426
cdq
push 4
pop ecx
idiv ecx
add eax, ecx
movsx eax, ax
cmp word [ebp - 0x24], bx
mov dword [ebp - 0x1c], eax
jge 0x100865b1
movsx eax, word [ebp - 0x14]
push eax
movsx eax, word [ebp - 0xc]
push eax
push str.DeviceHarddisk_dPartition_d
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
add esp, 0x10
call esi
mov edi, eax
call esi
push ebx
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0xc
push eax
call fcn.10043353
mov ecx, dword [ebp + 8]
mov word [ebp - 0x54], ax
mov esi, dword [ebp - 0x54]
mov word [ecx], ax
add esp, 0x10
or ecx, 0xffffffff
cmp ax, bx
mov word [ebp - 0x80], ax
mov dword [ebp - 0x2c], esi
je 0x100864a6
push dword [ebp - 0x64]
lea eax, [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x3c]
call fcn.10054b6b
add esp, 0x14
mov ecx, eax
cmp byte [0x100e2e70], bl
je 0x100864cc
push ecx
push edi
push dword [ebp - 0x1c]
movzx eax, si
push dword [ebp - 0xc]
push eax
push str.MOUN__show_to__c____d_d__0x_lX___d_r_n
push 0x100e3108
call fcn.10011029
add esp, 0x1c
mov edi, dword [ebp - 0x20]
cmp word [ebp - 0x24], bx
jge 0x100864f3
cmp dword [ebp - 0x60], ebx
je 0x100864f3
test byte [ebp - 8], 0x10
je 0x100864f3
cmp dword [ebp - 8], 0x10
je 0x100864f3
cmp word [ebp - 0x2c], bx
mov dword [ebp - 0x14], 1
jne 0x100864f6
mov dword [ebp - 0x14], ebx
movzx eax, byte [ebp - 8]
mov esi, dword [ebp - 0x1c]
push dword [ebp + 8]
shl esi, 0x10
or esi, eax
call fcn.100b3871
test eax, eax
pop ecx
je 0x1008658a
cmp dword [ebp - 0x14], ebx
je 0x1008657c
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
and eax, 0xffffffef
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x148]
push dword [ebp - 0xc]
push str.PART__up__super__d_d_0x_X
push eax
call edi
add esp, 0x14
push ebx
lea eax, [ebp - 0x140]
push eax
mov ecx, 0x100e3108
call fcn.100663a0
push dword [ebp - 8]
lea eax, [ebp - 0x148]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push str.PART___super__d_d_0x_X
push eax
call edi
add esp, 0x14
push ebx
lea eax, [ebp - 0x140]
push eax
mov ecx, 0x100e3108
call fcn.100663a0
or esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
cmp ax, bx
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jne 0x100865f9
mov eax, dword [ebp - 0x2c]
cmp ax, bx
je 0x10086597
call fcn.100417df
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x40]
add edi, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], edi
jl 0x10086323
jmp 0x100865d4
movsx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
imul eax, eax, 0x220
mov ax, word [eax + esi + 0x10]
mov word [ecx], ax
jmp 0x100864cf
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0x20
jge 0x10086603
lea ecx, [ebp - 0x10]
call fcn.10002d56
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x34], eax
cmp esi, 0x3e80
mov dword [ebp - 0xc], esi
jl 0x10086218
jmp 0x1008660b
lea ecx, [ebp - 0x10]
call fcn.10002d56
jmp 0x1008660d
lea ecx, [ebp - 0x10]
call fcn.10002d56
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.1003f96c
lea ecx, [ebp - 0x3c]
call fcn.1003f96c
push 0x100e392c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret