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

Disassembly:
push 0xffffffffffffffff
push 0x4ec16c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push ebp
push esi
push edi
push 0x51d604
mov dword [esp + 0x88], 0x51d604
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x22c]
movsx ax, byte [ebx]
xor esi, esi
mov si, word [ebx]
push 0xca
mov dword [esp + 0x224], 0
mov word [ebx], ax
mov edi, esi
and edi, 0x100
mov dword [esp + 0x68], edi
call fcn.00449130
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x4949dc
mov word [ebp], 0
xor al, al
test edi, edi
mov byte [esp + 0x220], 1
je 0x4949ec
mov al, 1
test esi, 0x200
je 0x4949f6
or al, 1
mov ecx, dword [esp + 0x228]
or al, 1
push ecx
mov byte [esp + 0x84], al
call fcn.00446d70
movzx eax, ax
add esp, 4
test eax, eax
je 0x494a42
test ebp, ebp
je 0x494a2d
mov edx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x51d604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x40000000
jmp 0x495046
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [0x4fb4a4]
mov cx, word [0x4fb4a8]
mov edx, dword [0x4fb49c]
mov dword [esp + 0x58], eax
mov eax, dword [0x4fb4a0]
push 0x20010f
mov word [esp + 0x60], cx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
call fcn.00449130
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x494a8e
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 + 0x22c], 2
setne byte [esp + 0x1f]
mov word [ebx], 0
call fcn.0044eba0
mov bl, byte [esp + 0x1f]
mov dl, byte [esp + 0x1f]
add esp, 0xc
neg bl
mov dword [esp + 0x34], 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 0x49500a
shl eax, 8
mov dword [esp + 0x60], eax
lea eax, [ebx + 1]
shl eax, 8
mov dword [esp + 0x40], eax
lea esp, [esp]
test ebx, ebx
jl 0x49500a
push ebx
lea ecx, [esp + 0x154]
push str..PhysicalDrive_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [esp + 0x14], 0
push 0
mov byte [esp + 0x224], 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x20000000
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [esp + 0x168]
push edx
lea ecx, [esp + 0x30]
call fcn.00417e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x494fd0
lea eax, [esp + 0x48]
push eax
xor esi, esi
push edi
mov dword [esp + 0x3c], esi
call fcn.0044fb50
lea ecx, [esp + 0x38]
push ecx
push ebp
push edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x44], esi
call fcn.00447240
mov esi, eax
add esp, 0x14
test esi, esi
je 0x494fba
mov eax, dword [esi]
xor edx, edx
cmp eax, 1
mov eax, dword [esi + 0x28]
sete dl
push edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], edx
call fcn.00446dd0
mov edx, eax
lea ecx, [ebp + 0x10010e]
lea eax, [edx + ecx]
add eax, edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
mov dword [esp + 0x68], edx
je 0x494c0d
push 0
push 0
push 0
push edx
mov edx, dword [esp + 0x54]
push edx
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0044f2b0
add esp, 0x1c
mov al, byte [esp + 0x13]
test al, al
mov eax, dword [esp + 0x30]
je 0x494c1e
lea ecx, [eax - 1]
jmp 0x494c20
xor ecx, ecx
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jge 0x494fba
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*8]
shl eax, 4
lea ecx, [ecx + ecx*8]
shl ecx, 4
lea edi, [ecx + esi + 0x48]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x494c5b
mov ecx, 0xff07
mov dword [esp + 0x1c], ecx
jmp 0x494c65
movzx edx, byte [edi + 8]
mov dword [esp + 0x1c], edx
mov ecx, edx
test eax, eax
movsx esi, word [edi]
jne 0x494c86
test ecx, ecx
je 0x494f8e
cmp ecx, 5
je 0x494f8e
cmp ecx, 0xf
je 0x494f8e
mov eax, dword [edi - 4]
test eax, eax
jg 0x494cc4
jl 0x494c98
cmp dword [edi - 8], 0x200
ja 0x494cc4
test cl, 0x10
je 0x494f8e
mov eax, dword [esp + 0x18]
push 0
push 0
push 1
push 1
push 0
push esi
add eax, 0x100000
push ebx
push eax
call fcn.00446e30
add esp, 0x20
jmp 0x494f8e
mov eax, dword [edi - 0x10]
cmp eax, dword [esp + 0x6c]
jne 0x494cda
mov ecx, dword [edi - 0xc]
cmp ecx, dword [esp + 0x70]
je 0x494f8e
mov dword [esp + 0x3c], 0xffffffff
xor ecx, ecx
mov ebp, dword [esp + 0x18]
movsx eax, cx
lea edx, [eax + eax*4]
add ebp, 0x100000
lea eax, [ebp + edx*2]
movsx edx, word [eax + 2]
cmp edx, ebx
jne 0x494d07
movsx eax, word [eax]
cmp eax, esi
je 0x494d10
inc ecx
cmp cx, 0x1a
jl 0x494ce4
jmp 0x494d14
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x20], 0
je 0x494d43
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
add edi, 0xffffffe8
push edi
call fcn.0044f060
add esp, 0x10
mov edi, eax
jmp 0x494d5e
mov eax, dword [esp + 0x2c]
cmp eax, 3
jg 0x494d4f
inc eax
jmp 0x494d5b
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, 4
movsx edi, ax
mov ecx, dword [esp + 0x3c]
test cx, cx
jge 0x494e1f
mov eax, dword [esp + 0x24]
movsx ecx, si
push ecx
movsx edx, bx
push edx
push str.DeviceHarddisk_dPartition_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, 2
lea esp, [esp]
mov esi, 1
mov cl, dl
shl esi, cl
test eax, esi
je 0x494e1a
inc edx
cmp dx, 0x1a
jl 0x494da0
xor esi, esi
mov ecx, dword [esp + 0x228]
or eax, 0xffffffff
test si, si
mov word [esp + 0x78], si
mov word [esp + 0x58], si
mov dword [esp + 0x20], esi
mov word [ecx], si
je 0x494dfa
mov edx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.0044e6f0
add esp, 0x14
push eax
push ebp
push edi
movzx eax, si
push ebx
push eax
push str.MOUN__show_to__c____d_d__0x_lX___d_r_n
push 0x51d2a0
call fcn.004203b8
mov ecx, dword [esp + 0x58]
add esp, 0x1c
jmp 0x494e34
lea esi, [edx + 0x41]
jmp 0x494db6
movsx eax, cx
lea edx, [eax + eax*4]
mov ax, word [ebp + edx*2 + 8]
mov edx, dword [esp + 0x228]
mov word [edx], ax
test cx, cx
jge 0x494e5d
mov eax, dword [esp + 0x64]
test eax, eax
je 0x494e5d
mov eax, dword [esp + 0x1c]
test al, 0x10
je 0x494e61
cmp eax, 0x10
je 0x494e61
cmp word [esp + 0x20], 0
je 0x494e61
mov ebp, 1
jmp 0x494e63
mov eax, dword [esp + 0x1c]
xor ebp, ebp
mov ecx, dword [esp + 0x228]
movzx eax, al
mov esi, edi
shl esi, 0x10
push ecx
or esi, eax
call fcn.004b0cb0
add esp, 4
test eax, eax
je 0x494f5f
test ebp, ebp
je 0x494ef0
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
and edx, 0xffffffef
push edx
push edi
push ebx
lea eax, [esp + 0x94]
push str.PART__up__super__d_d_0x_X
push eax
call ebp
add esp, 0x14
push 0
lea ecx, [esp + 0x94]
push ecx
mov ecx, 0x51d2a0
call fcn.00474f90
mov edx, dword [esp + 0x1c]
push edx
push edi
push ebx
lea eax, [esp + 0x94]
push 0x4fb3e0
push eax
call ebp
add esp, 0x14
push 0
lea ecx, [esp + 0x94]
push ecx
mov ecx, 0x51d2a0
call fcn.00474f90
or esi, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
test ax, ax
mov edx, dword [esp + 0x22c]
mov word [edx], ax
je 0x494f8e
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x494f17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x494f36
mov edx, dword [0x51d3c8]
mov ecx, eax
add ecx, 0xfffffff8
push ecx
push 0
push edx
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x494f4d
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call edi
push 0x51d604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x495046
cmp word [esp + 0x20], 0
je 0x494f8e
mov ax, word [esp + 0x20]
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 + 0x2c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
add eax, esi
add edi, edx
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], edi
jl 0x494c48
mov edi, dword [esp + 0x14]
cmp edi, 0xffffffff
mov byte [esp + 0x220], 2
je 0x494fe6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x494fe6
mov eax, dword [esp + 0x34]
inc eax
cmp eax, 0x20
mov dword [esp + 0x34], eax
jge 0x49500a
mov byte [esp + 0x220], 2
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x18]
add ebx, edx
mov edx, dword [esp + 0x60]
add ecx, edx
cmp ebx, 0x3e80
mov dword [esp + 0x40], ecx
jl 0x494b10
test ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x495023
mov edx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push edx
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x495039
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
push 0x51d604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x214
ret