Function at 0x45c800
Capabilities:
Enumerate pe sections
Get disk information
Get disk size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x486c8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x398
mov eax, dword [0x4ce19c]
push ebx
push ebp
mov ebp, dword [esp + 0x3b4]
cmp ebp, 1
push esi
mov dword [esp + 0x3a0], eax
push edi
je 0x45c85d
cmp ebp, 0x20
je 0x45c85d
cmp ebp, 8
je 0x45c85d
push str.Invalid_location_passed_to_storeDriveInfo__
push 0x48ae58
call fcn.004572b0
add esp, 8
mov eax, 1
jmp 0x45d05c
mov eax, dword [esp + 0x3b8]
push eax
push str..PHYSICALDRIVE_d
lea ecx, [esp + 0xf8]
push 0x28
push ecx
call fcn.00403fa3
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
je 0x45d05a
mov edi, dword [esp + 0x3c0]
push edi
push ebp
mov ecx, 0x4e313c
call fcn.0046cf30
push 0
lea eax, [esp + 0x3c]
push eax
push 0x18
lea ecx, [esp + 0x80]
push ecx
push 0
push 0
push 0x70000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call esi
test eax, eax
je 0x45c944
mov edx, dword [esp + 0x88]
push edi
push edx
push ebp
push 2
mov ecx, 0x4e313c
call fcn.0046cde0
mov eax, dword [esp + 0x84]
push edi
push eax
push ebp
push 3
mov ecx, 0x4e313c
call fcn.0046cde0
mov ecx, dword [esp + 0x80]
push edi
push ecx
push ebp
push 4
mov ecx, 0x4e313c
call fcn.0046cde0
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
push edi
push eax
push ebp
push 5
mov ecx, 0x4e313c
mov dword [esp + 0x3c], edx
call fcn.0046cde0
jmp 0x45c988
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.storeDriveInfo
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.IOCTL_DISK_GET_DRIVE_GEOMETRY
mov dword [esp + 0x3bc], 0
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00458010
add esp, 0xc
push 0xca8
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x45d04f
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x3c]
push eax
push 0xca8
push ebx
push 0
push 0
push 0x7400c
push ecx
call esi
test eax, eax
jne 0x45ca0e
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.storeDriveInfo
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.IOCTL_DISK_GET_DRIVE_LAYOUT
mov dword [esp + 0x3bc], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00458010
add esp, 0xc
jmp 0x45ce2f
mov edx, dword [ebx + 4]
push edi
push edx
push ebp
push 1
mov ecx, 0x4e313c
call fcn.0046cde0
mov ecx, dword [ebx]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jbe 0x45ce1c
lea esi, [ebx + 0x1c]
jmp 0x45ca40
mov eax, dword [esi]
test eax, eax
je 0x45ce06
mov edx, dword [esp + 0x14]
inc edx
cmp ebp, 1
mov dword [esp + 0x14], edx
jne 0x45ce06
mov ecx, dword [esi - 0x10]
push edi
lea ebx, [esi - 0x10]
push ecx
push eax
push 0
mov ecx, 0x4e313c
call fcn.0046c9d0
mov edx, dword [esi - 0x14]
mov eax, dword [esi]
push edi
lea ebp, [esi - 0x14]
push edx
push eax
push 1
mov ecx, 0x4e313c
call fcn.0046c9d0
mov ecx, dword [esi - 8]
mov edx, dword [esi]
push edi
push ecx
push edx
push 2
mov ecx, 0x4e313c
call fcn.0046c9d0
mov eax, dword [esi - 0xc]
mov ecx, dword [esi]
push edi
push eax
push ecx
push 3
mov ecx, 0x4e313c
call fcn.0046c9d0
movzx edx, byte [esi + 4]
mov eax, dword [esi]
push edi
push edx
push eax
push 4
mov ecx, 0x4e313c
call fcn.0046c9d0
movzx ecx, byte [esi + 5]
mov edx, dword [esi]
push edi
push ecx
push edx
push 5
mov ecx, 0x4e313c
call fcn.0046c9d0
mov eax, dword [esi - 4]
mov ecx, dword [esi]
push edi
push eax
push ecx
push 6
mov ecx, 0x4e313c
call fcn.0046c9d0
movzx edx, byte [esi + 6]
mov eax, dword [esi]
push edi
push edx
push eax
push 7
mov ecx, 0x4e313c
call fcn.0046c9d0
movzx eax, byte [esi + 4]
cmp eax, 0xb
mov dword [esp + 0x30], eax
je 0x45cb23
cmp eax, 0xc
je 0x45cb23
cmp eax, 0x12
je 0x45cb23
cmp eax, 0x1c
jne 0x45cc5d
mov ecx, dword [ebp]
push 0
push ebx
mov ebx, dword [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x3c]
push edx
push 0x200
lea eax, [esp + 0x1b0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1ef]
mov edx, dword [esp + 0x1eb]
xor ecx, ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
mov cx, word [esp + 0x1f3]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], edx
mov dl, byte [esp + 0x1f5]
lea eax, [esp + 0x8c]
mov word [esp + 0x94], cx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9a], dl
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x10]
mov dword [esp + 0x3b0], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimRight]
xor ebx, ebx
jmp 0x45cbe0
push ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_CMapWordToPtr::GetAssocAt]
cmp ax, 0xf6
jne 0x45cc06
inc ebx
cmp ebx, 0xb
jl 0x45cbe0
push 0x48b000
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea ecx, [esp + 0x60]
call fcn.00414780
mov ecx, dword [esi]
push edi
push eax
push ecx
push 0xd
mov ecx, 0x4e313c
mov byte [esp + 0x3c0], 3
call fcn.0046cb40
lea ecx, [esp + 0x5c]
mov byte [esp + 0x3b0], 2
call fcn.004034a5
lea ecx, [esp + 0x10]
mov dword [esp + 0x3b0], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esp + 0x30]
cmp eax, 0x12
je 0x45cc6c
cmp eax, 0x1c
je 0x45cc6c
cmp eax, 0x27
jne 0x45ccbd
mov ecx, dword [esp + 0x3b8]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push ecx
call fcn.0045bbd0
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x38]
mov edx, dword [esi]
xor ecx, ecx
add esp, 0x10
shld ecx, eax, 9
push edi
push ecx
push edx
shl eax, 9
push 8
mov ecx, 0x4e313c
mov ebx, eax
call fcn.0046c9d0
mov eax, dword [esi]
push edi
push ebx
push eax
push 9
mov ecx, 0x4e313c
call fcn.0046c9d0
call fcn.00457af0
test eax, eax
jne 0x45cdfb
call fcn.00457b70
test al, al
je 0x45cdfb
cmp dword [esp + 0x30], 0x27
jne 0x45cdfb
lea ecx, [esp + 0x44]
call fcn.00414090
push str.TVTCOMMON
mov dword [esp + 0x3b4], 4
call dword [sym.imp.MSVCR71.dll__wgetenv]
add esp, 4
push eax
lea ecx, [esp + 0x48]
call fcn.00414100
push str._nspect.exe
lea ecx, [esp + 0x6c]
call fcn.00414780
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x3b4], 5
call fcn.004129b0
lea ecx, [esp + 0x68]
mov byte [esp + 0x3b0], 4
call fcn.004034a5
push 0
push 1
push 0x48ae58
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0x20
push 1
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str._sptype
mov byte [esp + 0x3d8], 6
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
mov byte [esp + 0x3dc], 7
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov byte [esp + 0x3d8], 4
call fcn.00460ca0
add esp, 0x28
cmp eax, 3
jne 0x45cde7
push str.SERVICEV002
lea ecx, [esp + 0x54]
call fcn.00414780
push edi
push eax
mov eax, dword [esi]
push eax
push 0xc
mov ecx, 0x4e313c
mov byte [esp + 0x3c0], 8
call fcn.0046cb40
lea ecx, [esp + 0x50]
mov byte [esp + 0x3b0], 4
call fcn.004034a5
lea ecx, [esp + 0x44]
mov dword [esp + 0x3b0], 0xffffffff
call fcn.004034a5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3bc]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
inc eax
add esi, 0x20
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x45ca40
mov ecx, dword [esp + 0x14]
push edi
push ecx
push ebp
push 0
mov ecx, 0x4e313c
call fcn.0046cde0
push ebx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
cmp ebp, 1
jne 0x45d04f
mov eax, dword [esp + 0x3b8]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0045b780
mov esi, dword [esp + 0x18]
shr esi, 2
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 2
call fcn.00457af0
test esi, esi
mov dword [esp + 0x20], eax
je 0x45d04f
mov ebx, dword [sym.imp.MSVCR71.dll_wcscpy]
test byte [esp + 0x10], 1
je 0x45d032
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
add esi, 0x41
push esi
call fcn.0045ba10
mov eax, dword [esp + 0x3c4]
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp ecx, eax
je 0x45cecc
push str.storeDriveInfo_Error:_drive_mismatch
push 0x48ae58
call fcn.004572b0
add esp, 8
jmp 0x45d032
movzx ebp, si
push ebp
push str._c:_
lea ecx, [esp + 0xa8]
push 0x28
push ecx
call fcn.00403fa3
add esp, 0x10
push 0
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x45cf2c
mov ecx, dword [esp + 0x34]
push edi
push ecx
push esi
push 8
mov ecx, 0x4e313c
call fcn.0046c9d0
mov edx, dword [esp + 0x30]
push edi
push edx
push esi
push 9
mov ecx, 0x4e313c
call fcn.0046c9d0
lea eax, [esp + 0x140]
push 0x48b000
push eax
call ebx
lea ecx, [esp + 0x120]
push 0x48b000
push ecx
call ebx
add esp, 0x10
push 0x14
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x32
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x45cf8e
test eax, eax
je 0x45d032
push ebp
push 0x48be00
lea edx, [esp + 0xd0]
push 0x28
push edx
call fcn.00403fa3
add esp, 0x10
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x54]
call fcn.00414780
push edi
push eax
push esi
push 0xb
mov ecx, 0x4e313c
mov dword [esp + 0x3c0], 9
call fcn.0046cb40
or ebp, 0xffffffff
lea ecx, [esp + 0x50]
mov dword [esp + 0x3b0], ebp
call fcn.004034a5
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x60]
call fcn.00414780
push edi
push eax
push esi
push 0xc
mov ecx, 0x4e313c
mov dword [esp + 0x3c0], 0xa
call fcn.0046cb40
lea ecx, [esp + 0x5c]
mov dword [esp + 0x3b0], ebp
call fcn.004034a5
mov edx, dword [esp + 0x1c]
push edi
push edx
push esi
push 0xa
mov ecx, 0x4e313c
call fcn.0046c9d0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
shr ecx, 1
inc eax
mov dword [esp + 0x14], eax
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], ecx
jne 0x45ce81
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x3a8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3a4]
call fcn.00475533
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a4
ret