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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push 0x4a6250
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 - 0x64], esi
call fcn.00432cd5
xor ebx, ebx
xor al, al
cmp esi, ebx
je 0x4644d4
inc al
test di, 0x200
je 0x4644dd
or al, 1
push dword [ebp + 8]
or al, 1
mov byte [ebp - 0x60], al
call fcn.00430a04
test ax, ax
pop ecx
je 0x4644fa
mov esi, 0x40000000
jmp 0x464966
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [0x496e7c]
mov esi, 0x496e74
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x58], eax
mov eax, dword [0x496e80]
push 0x20010e
lea ecx, [ebp - 0x18]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x54], eax
call fcn.00432b5e
mov edi, dword [ebp - 0x18]
push 0x10e
lea esi, [edi + 0x100000]
push ebx
push esi
call fcn.00479cf0
mov eax, dword [ebp + 0xc]
cmp word [eax], bx
push 1
push edi
push esi
setne byte [ebp - 1]
mov word [eax], bx
call fcn.00442164
mov al, byte [ebp - 1]
add esp, 0x18
neg al
mov edi, 0x3e80
mov dword [ebp - 0x24], 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 0x46495c
shl eax, 8
mov dword [ebp - 0x5c], eax
lea eax, [esi + 1]
shl eax, 8
mov dword [ebp - 0x30], eax
cmp esi, ebx
jl 0x46495c
push esi
lea eax, [ebp - 0x208]
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 - 0x208]
push eax
lea ecx, [ebp - 0x10]
call fcn.004041da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x46491c
lea eax, [ebp - 0x48]
push eax
push edi
mov dword [ebp - 0x24], ebx
call fcn.00437977
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x68], edx
push edi
mov dword [ebp - 0x38], ebx
call fcn.00430e12
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x464925
xor eax, eax
cmp dword [esi], 1
push edi
sete al
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x4c], eax
call fcn.00430a4c
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
add eax, 0x10010e
cmp dword [ebp - 0x2c], ebx
lea edx, [eax + ecx*2]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x48], edx
je 0x46465e
push ebx
push ebx
push ebx
push ecx
push dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00437284
add esp, 0x1c
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x38]
neg al
lea edx, [ecx - 1]
sbb eax, eax
and eax, edx
cmp eax, ecx
mov dword [ebp - 0x34], eax
jge 0x464925
mov edi, dword [ebp - 0x40]
lea edi, [edi + edi*8]
shl edi, 4
lea eax, [eax + eax*8]
shl eax, 4
lea esi, [eax + esi + 0x48]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x2c], ebx
je 0x46469f
mov dword [ebp - 8], 0xff07
jmp 0x4646a6
movzx eax, byte [esi + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x2c], ebx
movsx eax, word [esi]
mov dword [ebp - 0x14], eax
jne 0x4646ce
cmp dword [ebp - 8], ebx
je 0x464903
cmp dword [ebp - 8], 5
je 0x464903
cmp dword [ebp - 8], 0xf
je 0x464903
cmp dword [esi - 4], ebx
jg 0x464709
jl 0x4646de
cmp dword [esi - 8], 0x200
ja 0x464709
test byte [ebp - 8], 0x10
je 0x464903
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.00430a8d
add esp, 0x20
jmp 0x464903
mov eax, dword [esi - 0x10]
cmp eax, dword [ebp - 0x6c]
jne 0x46471d
mov eax, dword [esi - 0xc]
cmp eax, dword [ebp - 0x68]
je 0x464903
or dword [ebp - 0x28], 0xffffffff
xor ecx, ecx
mov edi, dword [ebp - 0x18]
movsx eax, cx
add edi, 0x100000
lea eax, [eax + eax*4]
lea eax, [edi + eax*2]
movsx edx, word [eax + 2]
cmp edx, dword [ebp - 0xc]
jne 0x464746
movsx eax, word [eax]
cmp eax, dword [ebp - 0x14]
je 0x46474f
inc ecx
cmp cx, 0x1a
jl 0x464723
jmp 0x464752
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
je 0x464771
push dword [ebp - 0x78]
add esi, 0xffffffe8
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push esi
call fcn.00437104
add esp, 0x10
jmp 0x464787
mov eax, dword [ebp - 0x34]
cmp eax, 3
jg 0x46477c
inc eax
jmp 0x464784
cdq
push 4
pop ecx
idiv ecx
add eax, ecx
movsx eax, ax
cmp word [ebp - 0x28], bx
mov dword [ebp - 0x1c], eax
jge 0x464825
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.00430975
mov ecx, dword [ebp + 8]
mov word [ebp - 0x58], ax
mov esi, dword [ebp - 0x58]
mov word [ecx], ax
add esp, 0x10
or ecx, 0xffffffff
cmp ax, bx
mov word [ebp - 0x74], ax
mov dword [ebp - 0x20], esi
je 0x464804
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push ebx
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x3c]
call fcn.00436bb7
add esp, 0x14
mov ecx, eax
push ecx
push edi
push dword [ebp - 0x1c]
movzx eax, si
push dword [ebp - 0xc]
mov edi, 0x4a5f08
push eax
push str.MOUN__show_to__c____d_d__0x_lX___d_r_n
push edi
call fcn.0040c938
add esp, 0x1c
jmp 0x46483c
movsx eax, word [ebp - 0x28]
mov ecx, dword [ebp + 8]
lea eax, [eax + eax*4]
mov ax, word [edi + eax*2 + 8]
mov word [ecx], ax
mov edi, 0x4a5f08
cmp word [ebp - 0x28], bx
jge 0x464860
cmp dword [ebp - 0x64], ebx
je 0x464860
test byte [ebp - 8], 0x10
je 0x464860
cmp dword [ebp - 8], 0x10
je 0x464860
cmp word [ebp - 0x20], bx
mov dword [ebp - 0x14], 1
jne 0x464863
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.00479791
test eax, eax
pop ecx
je 0x4648f0
cmp dword [ebp - 0x14], ebx
je 0x4648e2
mov eax, dword [ebp - 8]
and eax, 0xffffffef
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x140]
push dword [ebp - 0xc]
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 - 0x138]
push eax
mov ecx, edi
call fcn.0044e6d7
push dword [ebp - 8]
lea eax, [ebp - 0x140]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push str.PART___super__d_d_0x_X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push ebx
lea eax, [ebp - 0x138]
push eax
mov ecx, edi
call fcn.0044e6d7
or esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmp ax, bx
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jne 0x46494a
mov eax, dword [ebp - 0x20]
cmp ax, bx
je 0x4648fd
call fcn.0042f58c
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x40]
add esi, edi
cmp eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], esi
jl 0x464691
jmp 0x464925
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x20
jge 0x464954
lea ecx, [ebp - 0x10]
call fcn.00402ad9
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x30], eax
cmp esi, 0x3e80
mov dword [ebp - 0xc], esi
jl 0x464592
jmp 0x46495c
lea ecx, [ebp - 0x10]
call fcn.00402ad9
jmp 0x46495e
lea ecx, [ebp - 0x10]
call fcn.00402ad9
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
lea ecx, [ebp - 0x3c]
call fcn.0042dd2d
push 0x4a6250
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret