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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0x490234
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
movsx cx, byte [eax]
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 - 0x68], edi
call fcn.0042aed6
xor ebx, ebx
xor al, al
cmp edi, ebx
je 0x456205
inc al
test si, 0x200
je 0x45620e
or al, 1
push dword [ebp + 8]
or al, 1
mov byte [ebp - 0x58], al
call fcn.00428761
test ax, ax
pop ecx
je 0x45622b
mov esi, 0x40000000
jmp 0x456684
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [0x4820dc]
mov esi, 0x4820d4
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [0x4820e0]
push 0x20010e
lea ecx, [ebp - 0x28]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], eax
call fcn.0042add7
mov edi, dword [ebp - 0x28]
push 0x10e
lea esi, [edi + 0x100000]
push ebx
push esi
call fcn.00466780
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.0042ec9e
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 0x45667a
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 0x45667a
push esi
lea eax, [ebp - 0x204]
push 0x47ff90
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.00403b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xc], ebx
je 0x45663a
lea eax, [ebp - 0x48]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ebx
call fcn.00428b20
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x456643
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.004287a9
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 0x45637b
push ecx
push dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042f13c
add esp, 0x10
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 0x456643
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 0x4563bc
mov dword [ebp - 0x10], 0xff07
jmp 0x4563c3
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 0x4563f7
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x456620
cmp ecx, 5
je 0x456620
cmp ecx, 0xf
je 0x456620
cmp ecx, 0x85
je 0x456620
cmp dword [esi - 4], ebx
jg 0x456430
jl 0x456407
cmp dword [esi - 8], 0x200
ja 0x456430
test byte [ebp - 0x10], 0x10
je 0x456620
push ebx
push ebx
push 1
push 1
push ebx
push eax
push dword [ebp - 0x14]
lea eax, [edi + 0x100000]
push eax
call fcn.004287ea
add esp, 0x20
jmp 0x456620
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 0x45645b
movsx eax, word [eax]
cmp eax, dword [ebp - 0x18]
je 0x456467
inc dword [ebp - 8]
cmp word [ebp - 8], 0x1a
jl 0x456437
jmp 0x45646d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
je 0x45648f
push dword [ebp - 0x6c]
add esi, 0xffffffe8
push dword [ebp - 0x4c]
push dword [ebp - 0x70]
push esi
call fcn.0042efbc
mov ecx, dword [ebp - 0x38]
add esp, 0x10
jmp 0x4564a5
mov eax, dword [ebp - 0x44]
cmp eax, 3
jg 0x45649a
inc eax
jmp 0x4564a2
cdq
push 4
pop esi
idiv esi
add eax, esi
movsx eax, ax
cmp word [ebp - 0x30], bx
mov dword [ebp - 8], eax
jge 0x456542
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 edi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
add esp, 0x10
call edi
mov esi, eax
call edi
push 0xffffffffffffffff
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push 0xc
push eax
call fcn.0042870f
mov ecx, dword [ebp + 8]
mov word [ebp - 0x54], ax
mov edi, 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], edi
je 0x456521
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x3c]
call fcn.0042e990
add esp, 0x14
mov ecx, eax
push ecx
push esi
push dword [ebp - 8]
movzx eax, di
push dword [ebp - 0x14]
mov edi, 0x48feb8
push eax
push str.MOUN__show_to__c____d_d__0x_lX___d_r_n
push edi
call fcn.0040b047
add esp, 0x1c
jmp 0x456559
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, 0x48feb8
cmp word [ebp - 0x30], bx
jge 0x45657d
cmp dword [ebp - 0x68], ebx
je 0x45657d
test byte [ebp - 0x10], 0x10
je 0x45657d
cmp dword [ebp - 0x10], 0x10
je 0x45657d
cmp word [ebp - 0x24], bx
mov dword [ebp - 0x18], 1
jne 0x456580
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.0046646e
test eax, eax
pop ecx
je 0x45660d
cmp dword [ebp - 0x18], ebx
je 0x4565ff
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.00444968
push dword [ebp - 0x10]
lea eax, [ebp - 0x13c]
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x482018
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.00444968
or esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
cmp ax, bx
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jne 0x456668
mov eax, dword [ebp - 0x24]
cmp ax, bx
je 0x45661a
call fcn.0042793c
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 0x4563ae
jmp 0x456643
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x20
jge 0x456672
lea ecx, [ebp - 0xc]
call fcn.004029f8
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 0x4562c4
jmp 0x45667a
lea ecx, [ebp - 0xc]
call fcn.004029f8
jmp 0x45667c
lea ecx, [ebp - 0xc]
call fcn.004029f8
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.0042602e
lea ecx, [ebp - 0x3c]
call fcn.0042602e
push 0x490234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret