Function at 0x459b2f
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.0042c415
xor ebx, ebx
xor al, al
cmp esi, ebx
je 0x459b74
inc al
test di, 0x200
je 0x459b7d
or al, 1
push dword [ebp + 8]
or al, 1
mov byte [ebp - 0x58], al
call fcn.0042978a
test ax, ax
pop ecx
je 0x459b9a
mov esi, 0x40000000
jmp 0x459fea
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [0x488894]
mov esi, 0x48888c
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [0x488898]
push 0x20010e
lea ecx, [ebp - 0x28]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], eax
call fcn.0042c29e
mov edi, dword [ebp - 0x28]
push 0x10e
lea esi, [edi + 0x100000]
push ebx
push esi
call fcn.0046c4e0
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.0042ffd6
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 0x459fe0
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 0x459fe0
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.00403c6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xc], ebx
je 0x459fa0
lea eax, [ebp - 0x48]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ebx
call fcn.00429b49
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x459fa9
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.004297d2
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 0x459ced
push ebx
push ebx
push ebx
push ecx
push dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00430474
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 0x459fa9
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 0x459d2e
mov dword [ebp - 0x10], 0xff07
jmp 0x459d35
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 0x459d5d
cmp dword [ebp - 0x10], ebx
je 0x459f86
cmp dword [ebp - 0x10], 5
je 0x459f86
cmp dword [ebp - 0x10], 0xf
je 0x459f86
cmp dword [esi - 4], ebx
jg 0x459d96
jl 0x459d6d
cmp dword [esi - 8], 0x200
ja 0x459d96
test byte [ebp - 0x10], 0x10
je 0x459f86
push ebx
push ebx
push 1
push 1
push ebx
push eax
push dword [ebp - 0x14]
lea eax, [edi + 0x100000]
push eax
call fcn.00429813
add esp, 0x20
jmp 0x459f86
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 0x459dc1
movsx eax, word [eax]
cmp eax, dword [ebp - 0x18]
je 0x459dcd
inc dword [ebp - 8]
cmp word [ebp - 8], 0x1a
jl 0x459d9d
jmp 0x459dd3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
je 0x459df5
push dword [ebp - 0x6c]
add esi, 0xffffffe8
push dword [ebp - 0x4c]
push dword [ebp - 0x70]
push esi
call fcn.004302f4
mov ecx, dword [ebp - 0x38]
add esp, 0x10
jmp 0x459e0b
mov eax, dword [ebp - 0x44]
cmp eax, 3
jg 0x459e00
inc eax
jmp 0x459e08
cdq
push 4
pop esi
idiv esi
add eax, esi
movsx eax, ax
cmp word [ebp - 0x30], bx
mov dword [ebp - 8], eax
jge 0x459ea8
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.00429738
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 0x459e87
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x3c]
call fcn.0042fcc8
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.0040b348
add esp, 0x1c
jmp 0x459ebf
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 0x459ee3
cmp dword [ebp - 0x68], ebx
je 0x459ee3
test byte [ebp - 0x10], 0x10
je 0x459ee3
cmp dword [ebp - 0x10], 0x10
je 0x459ee3
cmp word [ebp - 0x24], bx
mov dword [ebp - 0x18], 1
jne 0x459ee6
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.0046c1b3
test eax, eax
pop ecx
je 0x459f73
cmp dword [ebp - 0x18], ebx
je 0x459f65
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.00446e4c
push dword [ebp - 0x10]
lea eax, [ebp - 0x13c]
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x4887d0
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.00446e4c
or esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
cmp ax, bx
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jne 0x459fce
mov eax, dword [ebp - 0x24]
cmp ax, bx
je 0x459f80
call fcn.004287f0
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 0x459d20
jmp 0x459fa9
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x20
jge 0x459fd8
lea ecx, [ebp - 0xc]
call fcn.0040296e
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 0x459c33
jmp 0x459fe0
lea ecx, [ebp - 0xc]
call fcn.0040296e
jmp 0x459fe2
lea ecx, [ebp - 0xc]
call fcn.0040296e
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.0042704a
lea ecx, [ebp - 0x3c]
call fcn.0042704a
push 0x4975fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret