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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0x4975fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
movsx cx, byte [eax]
xor edi, edi
mov di, word [eax]
mov word [eax], cx
push 0x64
lea ecx, [ebp - 0x3c]
mov esi, edi
and esi, 0x100
mov dword [ebp - 0x68], esi
call fcn.0042c827
xor ebx, ebx
xor al, al
cmp esi, ebx
je 0x459ff6
inc al
test di, 0x200
je 0x459fff
or al, 1
push dword [ebp + 8]
or al, 1
mov byte [ebp - 0x58], al
call fcn.00429adc
test ax, ax
pop ecx
je 0x45a01c
mov esi, 0x40000000
jmp 0x45a46c
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [0x4888a4]
mov esi, 0x48889c
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [0x4888a8]
push 0x20010e
lea ecx, [ebp - 0x28]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], eax
call fcn.0042c6b0
mov edi, dword [ebp - 0x28]
push 0x10e
lea esi, [edi + 0x100000]
push ebx
push esi
call fcn.0046c9b0
mov eax, dword [ebp + 0xc]
cmp word [eax], bx
push ebx
push edi
push esi
setne byte [ebp - 1]
mov word [eax], bx
call fcn.0043034a
mov cl, byte [ebp - 1]
add esp, 0x18
neg cl
mov eax, 0x3e80
mov dword [ebp - 0x2c], ebx
sbb ecx, ecx
and ecx, eax
mov esi, ecx
xor ecx, ecx
cmp byte [ebp - 1], bl
mov dword [ebp - 0x14], esi
sete cl
cmp esi, eax
lea ecx, [ecx + ecx - 1]
mov dword [ebp - 0x20], ecx
jge 0x45a462
mov eax, ecx
shl eax, 8
mov dword [ebp - 0x5c], eax
lea eax, [esi + 1]
shl eax, 8
mov dword [ebp - 0x34], eax
cmp esi, ebx
jl 0x45a462
push esi
lea eax, [ebp - 0x204]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0xc]
call fcn.00403ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xc], ebx
je 0x45a422
lea eax, [ebp - 0x48]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ebx
call fcn.00429e9b
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x45a42b
push dword [ebp - 0xc]
xor eax, eax
cmp dword [esi], 1
sete al
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x4c], eax
call fcn.00429b24
cmp dword [ebp - 0x1c], ebx
pop ecx
mov ecx, eax
lea eax, [edi + 0x10010e]
lea edx, [eax + ecx*2]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], edx
je 0x45a16f
push ebx
push ebx
push ebx
push ecx
push dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004307e8
add esp, 0x1c
mov cl, byte [ebp - 1]
mov eax, dword [ebp - 0x48]
neg cl
lea edx, [eax - 1]
sbb ecx, ecx
and ecx, edx
cmp ecx, eax
mov dword [ebp - 0x44], ecx
jge 0x45a42b
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*8]
shl eax, 4
mov dword [ebp - 0x74], eax
lea eax, [ecx + ecx*8]
shl eax, 4
lea esi, [eax + esi + 0x48]
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
je 0x45a1b0
mov dword [ebp - 0x10], 0xff07
jmp 0x45a1b7
movzx eax, byte [esi + 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x1c], ebx
movsx eax, word [esi]
mov dword [ebp - 0x18], eax
jne 0x45a1df
cmp dword [ebp - 0x10], ebx
je 0x45a408
cmp dword [ebp - 0x10], 5
je 0x45a408
cmp dword [ebp - 0x10], 0xf
je 0x45a408
cmp dword [esi - 4], ebx
jg 0x45a218
jl 0x45a1ef
cmp dword [esi - 8], 0x200
ja 0x45a218
test byte [ebp - 0x10], 0x10
je 0x45a408
push ebx
push ebx
push 1
push 1
push ebx
push eax
push dword [ebp - 0x14]
lea eax, [edi + 0x100000]
push eax
call fcn.00429b65
add esp, 0x20
jmp 0x45a408
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 8], ebx
movsx eax, word [ebp - 8]
lea ecx, [edi + 0x100000]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
movsx edx, word [eax + 2]
cmp edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
jne 0x45a243
movsx eax, word [eax]
cmp eax, dword [ebp - 0x18]
je 0x45a24f
inc dword [ebp - 8]
cmp word [ebp - 8], 0x1a
jl 0x45a21f
jmp 0x45a255
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
je 0x45a277
push dword [ebp - 0x6c]
add esi, 0xffffffe8
push dword [ebp - 0x4c]
push dword [ebp - 0x70]
push esi
call fcn.00430668
mov ecx, dword [ebp - 0x38]
add esp, 0x10
jmp 0x45a28d
mov eax, dword [ebp - 0x44]
cmp eax, 3
jg 0x45a282
inc eax
jmp 0x45a28a
cdq
push 4
pop esi
idiv esi
add eax, esi
movsx eax, ax
cmp word [ebp - 0x30], bx
mov dword [ebp - 8], eax
jge 0x45a32a
movsx eax, word [ebp - 0x18]
push eax
movsx eax, word [ebp - 0x14]
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 0xffffffffffffffff
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push 0xc
push eax
call fcn.00429a8a
mov ecx, dword [ebp + 8]
mov word [ebp - 0x54], ax
mov esi, dword [ebp - 0x54]
mov word [ecx], ax
add esp, 0xc
or ecx, 0xffffffff
cmp ax, bx
mov word [ebp - 0x64], ax
mov dword [ebp - 0x24], esi
je 0x45a309
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x3c]
call fcn.0043003c
add esp, 0x14
mov ecx, eax
push ecx
push edi
push dword [ebp - 8]
movzx eax, si
push dword [ebp - 0x14]
mov edi, 0x496eb8
push eax
push str.MOUN__show_to__c____d_d__0x_lX___d_r_n
push edi
call fcn.0040b4f8
add esp, 0x1c
jmp 0x45a341
movsx eax, word [ebp - 0x30]
lea eax, [eax + eax*4]
mov ax, word [ecx + eax*2 + 8]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov edi, 0x496eb8
cmp word [ebp - 0x30], bx
jge 0x45a365
cmp dword [ebp - 0x68], ebx
je 0x45a365
test byte [ebp - 0x10], 0x10
je 0x45a365
cmp dword [ebp - 0x10], 0x10
je 0x45a365
cmp word [ebp - 0x24], bx
mov dword [ebp - 0x18], 1
jne 0x45a368
mov dword [ebp - 0x18], ebx
movzx eax, byte [ebp - 0x10]
mov esi, dword [ebp - 8]
push dword [ebp + 8]
shl esi, 0x10
or esi, eax
call fcn.0046c682
test eax, eax
pop ecx
je 0x45a3f5
cmp dword [ebp - 0x18], ebx
je 0x45a3e7
mov eax, dword [ebp - 0x10]
and eax, 0xffffffef
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x13c]
push dword [ebp - 0x14]
push str.PART__up__super__d_d_0x_X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push ebx
lea eax, [ebp - 0x134]
push eax
mov ecx, edi
call fcn.0044720a
push dword [ebp - 0x10]
lea eax, [ebp - 0x13c]
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x4887e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push ebx
lea eax, [ebp - 0x134]
push eax
mov ecx, edi
call fcn.0044720a
or esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
cmp ax, bx
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jne 0x45a450
mov eax, dword [ebp - 0x24]
cmp ax, bx
je 0x45a402
call fcn.00428b3f
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x20]
add esi, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
jl 0x45a1a2
jmp 0x45a42b
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x20
jge 0x45a45a
lea ecx, [ebp - 0xc]
call fcn.00402a26
mov esi, dword [ebp - 0x14]
add esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x34], eax
cmp esi, 0x3e80
mov dword [ebp - 0x14], esi
jl 0x45a0b5
jmp 0x45a462
lea ecx, [ebp - 0xc]
call fcn.00402a26
jmp 0x45a464
lea ecx, [ebp - 0xc]
call fcn.00402a26
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00427365
lea ecx, [ebp - 0x3c]
call fcn.00427365
push 0x4975fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret