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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0x49b61c
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.0042e1e2
xor ebx, ebx
xor al, al
cmp esi, ebx
je 0x45ed5d
inc al
test di, 0x200
je 0x45ed66
or al, 1
push dword [ebp + 8]
or al, 1
mov byte [ebp - 0x58], al
call fcn.0042b254
test ax, ax
pop ecx
je 0x45ed83
mov esi, 0x40000000
jmp 0x45f1d3
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [0x48cd24]
mov esi, 0x48cd1c
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [0x48cd28]
push 0x20010e
lea ecx, [ebp - 0x28]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], eax
call fcn.0042e06b
mov edi, dword [ebp - 0x28]
push 0x10e
lea esi, [edi + 0x100000]
push ebx
push esi
call fcn.00470340
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.00431e7e
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 0x45f1c9
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 0x45f1c9
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.00404073
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xc], ebx
je 0x45f189
lea eax, [ebp - 0x48]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ebx
call fcn.0042b613
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x45f192
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.0042b29c
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 0x45eed6
push ebx
push ebx
push ebx
push ecx
push dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043231c
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 0x45f192
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 0x45ef17
mov dword [ebp - 0x10], 0xff07
jmp 0x45ef1e
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 0x45ef46
cmp dword [ebp - 0x10], ebx
je 0x45f16f
cmp dword [ebp - 0x10], 5
je 0x45f16f
cmp dword [ebp - 0x10], 0xf
je 0x45f16f
cmp dword [esi - 4], ebx
jg 0x45ef7f
jl 0x45ef56
cmp dword [esi - 8], 0x200
ja 0x45ef7f
test byte [ebp - 0x10], 0x10
je 0x45f16f
push ebx
push ebx
push 1
push 1
push ebx
push eax
push dword [ebp - 0x14]
lea eax, [edi + 0x100000]
push eax
call fcn.0042b2dd
add esp, 0x20
jmp 0x45f16f
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 0x45efaa
movsx eax, word [eax]
cmp eax, dword [ebp - 0x18]
je 0x45efb6
inc dword [ebp - 8]
cmp word [ebp - 8], 0x1a
jl 0x45ef86
jmp 0x45efbc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
je 0x45efde
push dword [ebp - 0x6c]
add esi, 0xffffffe8
push dword [ebp - 0x4c]
push dword [ebp - 0x70]
push esi
call fcn.0043219c
mov ecx, dword [ebp - 0x38]
add esp, 0x10
jmp 0x45eff4
mov eax, dword [ebp - 0x44]
cmp eax, 3
jg 0x45efe9
inc eax
jmp 0x45eff1
cdq
push 4
pop esi
idiv esi
add eax, esi
movsx eax, ax
cmp word [ebp - 0x30], bx
mov dword [ebp - 8], eax
jge 0x45f091
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.0042b202
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 0x45f070
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x3c]
call fcn.00431b70
add esp, 0x14
mov ecx, eax
push ecx
push edi
push dword [ebp - 8]
movzx eax, si
push dword [ebp - 0x14]
mov edi, 0x49aed0
push eax
push str.MOUN__show_to__c____d_d__0x_lX___d_r_n
push edi
call fcn.0040c0f5
add esp, 0x1c
jmp 0x45f0a8
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, 0x49aed0
cmp word [ebp - 0x30], bx
jge 0x45f0cc
cmp dword [ebp - 0x68], ebx
je 0x45f0cc
test byte [ebp - 0x10], 0x10
je 0x45f0cc
cmp dword [ebp - 0x10], 0x10
je 0x45f0cc
cmp word [ebp - 0x24], bx
mov dword [ebp - 0x18], 1
jne 0x45f0cf
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.00470011
test eax, eax
pop ecx
je 0x45f15c
cmp dword [ebp - 0x18], ebx
je 0x45f14e
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.0044a907
push dword [ebp - 0x10]
lea eax, [ebp - 0x13c]
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x48cc60
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.0044a907
or esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
cmp ax, bx
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jne 0x45f1b7
mov eax, dword [ebp - 0x24]
cmp ax, bx
je 0x45f169
call fcn.0042a246
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 0x45ef09
jmp 0x45f192
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x20
jge 0x45f1c1
lea ecx, [ebp - 0xc]
call fcn.00402abc
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 0x45ee1c
jmp 0x45f1c9
lea ecx, [ebp - 0xc]
call fcn.00402abc
jmp 0x45f1cb
lea ecx, [ebp - 0xc]
call fcn.00402abc
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00428a48
lea ecx, [ebp - 0x3c]
call fcn.00428a48
push 0x49b61c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret