Function at 0x494ab0
Capabilities:
Get disk information
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e7e8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
push ebp
push esi
push edi
push 0x519504
mov dword [esp + 0x84], 0x519504
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x228]
movsx ax, byte [ebx]
xor esi, esi
mov si, word [ebx]
push 0xca
mov dword [esp + 0x220], 0
mov word [ebx], ax
mov edi, esi
and edi, 0x100
mov dword [esp + 0x6c], edi
call fcn.00445f00
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x494b2c
mov word [ebp], 0
xor al, al
test edi, edi
mov byte [esp + 0x21c], 1
je 0x494b3c
mov al, 1
test esi, 0x200
je 0x494b46
or al, 1
mov ecx, dword [esp + 0x224]
or al, 1
push ecx
mov byte [esp + 0x64], al
call fcn.00442720
movzx eax, ax
add esp, 4
test eax, eax
je 0x494b8f
test ebp, ebp
je 0x494b7a
mov edx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x519504
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x40000000
jmp 0x495155
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [0x4f741c]
mov cx, word [0x4f7420]
mov edx, dword [0x4f7414]
mov dword [esp + 0x58], eax
mov eax, dword [0x4f7418]
push 0x20010f
mov word [esp + 0x60], cx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call fcn.00445f00
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x494bd8
mov byte [ebp], 0
lea edx, [ebp + 0x100000]
xor eax, eax
mov edi, edx
mov ecx, 0x43
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp word [ebx], 0
push 0
push ebp
push edx
mov byte [esp + 0x228], 2
setne byte [esp + 0x1f]
mov word [ebx], 0
call fcn.0044b7a0
mov bl, byte [esp + 0x1f]
mov dl, byte [esp + 0x1f]
add esp, 0xc
neg bl
mov dword [esp + 0x40], 0
sbb ebx, ebx
xor eax, eax
and ebx, 0x3e80
test dl, dl
sete al
cmp ebx, 0x3e80
lea eax, [eax + eax - 1]
mov dword [esp + 0x38], eax
jge 0x495119
shl eax, 8
mov dword [esp + 0x70], eax
lea eax, [ebx + 1]
shl eax, 8
mov dword [esp + 0x30], eax
test ebx, ebx
jl 0x495119
push ebx
lea ecx, [esp + 0x150]
push str..PhysicalDrive_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [esp + 0x18], 0
push 0
mov byte [esp + 0x220], 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x20000000
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x34]
call fcn.004167bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4950e3
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
push ebp
push edi
call fcn.00442bd0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4950cd
mov eax, dword [esi]
mov edx, dword [esi + 0x28]
xor ecx, ecx
cmp eax, 1
sete cl
push edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x28], ecx
call fcn.00442780
mov edx, eax
lea ecx, [ebp + 0x10010e]
lea eax, [edx + ecx]
add eax, edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [esp + 0x48], edx
je 0x494d39
push 0
push 0
push 0
mov eax, edx
mov edx, dword [esp + 0x58]
push eax
push edx
push ecx
lea eax, [esp + 0x30]
push eax
call fcn.0044beb0
add esp, 0x1c
mov al, byte [esp + 0x13]
test al, al
mov eax, dword [esp + 0x3c]
je 0x494d4a
lea ecx, [eax - 1]
jmp 0x494d4c
xor ecx, ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jge 0x4950cd
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*8]
shl eax, 4
lea ecx, [ecx + ecx*8]
shl ecx, 4
lea esi, [ecx + esi + 0x48]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x494d87
mov ecx, 0xff07
mov dword [esp + 0x14], ecx
jmp 0x494d91
movzx edx, byte [esi + 8]
mov dword [esp + 0x14], edx
mov ecx, edx
test eax, eax
movsx edi, word [esi]
mov dword [esp + 0x64], edi
jne 0x494db6
test ecx, ecx
je 0x49509d
cmp ecx, 5
je 0x49509d
cmp ecx, 0xf
je 0x49509d
mov eax, dword [esi - 4]
test eax, eax
jg 0x494df1
jl 0x494dc8
cmp dword [esi - 8], 0x200
ja 0x494df1
test cl, 0x10
je 0x49509d
push 0
push 0
push 1
push 1
push 0
push edi
lea eax, [ebp + 0x100000]
push ebx
push eax
call fcn.004427e0
add esp, 0x20
jmp 0x49509d
mov dword [esp + 0x34], 0xffffffff
xor ecx, ecx
jmp 0x494e00
movsx eax, cx
lea eax, [eax + eax*4]
lea esi, [ebp + 0x100000]
movsx edx, word [esi + eax*2 + 2]
cmp edx, ebx
lea eax, [esi + eax*2]
jne 0x494e1f
movsx eax, word [eax]
cmp eax, edi
je 0x494e28
inc ecx
cmp cx, 0x1a
jl 0x494e00
jmp 0x494e2c
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x494e5f
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
add ecx, 0xffffffe8
push ecx
call fcn.0044bc60
add esp, 0x10
mov edi, eax
jmp 0x494e7a
mov eax, dword [esp + 0x28]
cmp eax, 3
jg 0x494e6b
inc eax
jmp 0x494e77
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, 4
movsx edi, ax
mov ecx, dword [esp + 0x34]
test cx, cx
jge 0x494f2e
movsx edx, word [esp + 0x64]
mov ecx, dword [esp + 0x20]
push edx
movsx eax, bx
push eax
push str.DeviceHarddisk_dPartition_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
add esp, 0x10
call esi
mov ebp, eax
call esi
mov edx, 2
mov esi, 1
mov cl, dl
shl esi, cl
test eax, esi
je 0x494f29
inc edx
cmp dx, 0x1a
jl 0x494eb5
xor esi, esi
mov edx, dword [esp + 0x224]
or eax, 0xffffffff
test si, si
mov word [esp + 0x74], si
mov word [esp + 0x58], si
mov dword [esp + 0x1c], esi
mov word [edx], si
je 0x494f09
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x64]
push edx
push eax
call fcn.0044b310
add esp, 0x14
push eax
push ebp
push edi
movzx ecx, si
push ebx
push ecx
push str.MOUN__show_to__c____d_d__0x_lX___d_r_n
push 0x519150
call fcn.0041e97e
mov ecx, dword [esp + 0x50]
add esp, 0x1c
jmp 0x494f43
lea esi, [edx + 0x41]
jmp 0x494ecb
movsx eax, cx
lea edx, [eax + eax*4]
mov ax, word [esi + edx*2 + 8]
mov edx, dword [esp + 0x224]
mov word [edx], ax
test cx, cx
jge 0x494f6c
mov eax, dword [esp + 0x68]
test eax, eax
je 0x494f6c
mov eax, dword [esp + 0x14]
test al, 0x10
je 0x494f70
cmp eax, 0x10
je 0x494f70
cmp word [esp + 0x1c], 0
je 0x494f70
mov ebp, 1
jmp 0x494f72
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov ecx, dword [esp + 0x224]
movzx eax, al
mov esi, edi
shl esi, 0x10
push ecx
or esi, eax
call fcn.004abec0
add esp, 4
test eax, eax
je 0x49506e
test ebp, ebp
je 0x494fff
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
and edx, 0xffffffef
push edx
push edi
push ebx
lea eax, [esp + 0x90]
push str.PART__up__super__d_d_0x_X
push eax
call ebp
add esp, 0x14
push 0
lea ecx, [esp + 0x90]
push ecx
mov ecx, 0x519150
call fcn.00472970
mov edx, dword [esp + 0x14]
push edx
push edi
push ebx
lea eax, [esp + 0x90]
push 0x4f7358
push eax
call ebp
add esp, 0x14
push 0
lea ecx, [esp + 0x90]
push ecx
mov ecx, 0x519150
call fcn.00472970
or esi, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
test ax, ax
mov edx, dword [esp + 0x228]
mov word [edx], ax
je 0x49509d
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x495026
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x495045
mov edx, dword [0x51927c]
mov ecx, eax
add ecx, 0xfffffff8
push ecx
push 0
push edx
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49505c
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call edi
push 0x519504
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x495155
cmp word [esp + 0x1c], 0
je 0x49509d
mov ax, word [esp + 0x1c]
push 0
lea ecx, [esp + 0x54]
push ecx
push 2
mov word [esp + 0x5c], ax
mov word [esp + 0x5e], 0x3a
mov word [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
add eax, esi
mov esi, dword [esp + 0x44]
add esi, edx
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], esi
jl 0x494d74
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
mov byte [esp + 0x21c], 2
je 0x4950f9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4950f9
mov eax, dword [esp + 0x40]
inc eax
cmp eax, 0x20
mov dword [esp + 0x40], eax
jge 0x495119
mov byte [esp + 0x21c], 2
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add ebx, edx
mov edx, dword [esp + 0x70]
add ecx, edx
cmp ebx, 0x3e80
mov dword [esp + 0x30], ecx
jl 0x494c53
test ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x495132
mov edx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push edx
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x495148
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
push 0x519504
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x210
ret