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

Disassembly:
push 0xffffffffffffffff
push 0x4e5f2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
push edi
push 2
call fcn.00445f00
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x4568b4
mov word [eax], si
or eax, 0xffffffff
push 0x101065
mov dword [esp + 0x98], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.00445f00
add esp, 4
cmp eax, esi
mov dword [esp + 0x1c], eax
je 0x4568e6
mov byte [eax], 0
push ebx
push ebp
xor edx, edx
lea ebp, [eax + 0x100028]
lea esi, [ebp + 8]
lea ebx, [esi + 0x41a]
mov word [ebx + 0x20a], dx
lea edi, [ebx + 0x20a]
mov word [edi + 0x824], dx
lea ecx, [edi + 0x824]
mov word [ecx + 0x64], dx
mov dword [esp + 0x34], ecx
add ecx, 0x64
mov word [ecx + 0x64], dx
mov dword [esp + 0x4c], ecx
add ecx, 0x64
mov word [ecx + 0x64], dx
mov dword [esp + 0x48], ecx
add ecx, 0x64
mov word [ecx + 0x64], dx
mov dword [esp + 0x44], ecx
add ecx, 0x64
mov dword [esp + 0x64], ecx
mov ecx, dword [eax]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], 0x4ebd38
mov dword [esp + 0x70], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], edx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], edx
push 0x5c
mov dword [ecx + 0x24], edx
push edx
mov edx, dword [esp + 0xb0]
push edx
mov byte [esp + 0xa8], 2
mov dword [eax], 5
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x2f
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xac]
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jbe 0x4569ca
mov dword [esp + 0x10], eax
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x18], 0
je 0x4569e3
mov dx, word [ecx]
mov word [esp + 0x18], dx
mov word [ecx], 0
mov edx, dword [esp + 0xa8]
push 0
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x456a0f
mov cx, word [esp + 0x18]
mov word [eax], cx
lea edx, [esp + 0x60]
push edx
mov eax, 0x5c
mov word [ebp + 6], ax
mov word [ebp + 2], ax
mov word [ebp], ax
mov eax, dword [esp + 0xac]
push esi
mov word [ebp + 4], 0x2e
push 0x20d
mov dword [esp + 0x6c], 0
push eax
mov word [esi], 0
call fcn.00446c10
add esp, 0x10
push 0x5c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x5c
push 0
mov word [ebx], 0
push esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x1c], 0xffffffff
mov word [edi], 0
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x104
push ebx
lea ecx, [esp + 0x64]
push ecx
push 0
push 0
push 0
push 0
mov ebp, eax
push esi
mov word [ebp + 2], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x209
push edi
push esi
mov dword [esp + 0x24], eax
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
mov word [ebp], 0
jne 0x456b25
cmp ebp, dword [esp + 0x68]
jbe 0x456fc2
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x104
push ebx
lea edx, [esp + 0x64]
push edx
push 0
push 0
push 0
push 0
mov ebp, eax
push esi
mov word [ebp + 2], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x209
push edi
push esi
mov dword [esp + 0x24], eax
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
mov word [ebp], 0
je 0x456ac4
push ebx
push 0x4f52e8
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x456b44
mov ebx, 1
jmp 0x456b98
push ebx
push str.FAT32
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x456b5e
mov dword [esp + 0x10], 2
jmp 0x456b94
push ebx
push str.exFAT
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x456b78
mov dword [esp + 0x10], 3
jmp 0x456b94
push ebx
push 0x4f52c4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x456b94
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add eax, 0x100028
cmp word [edi], 0
mov dword [esp + 0x28], eax
je 0x456bcf
mov eax, ebp
sub eax, esi
and eax, 0xfffffffe
cmp eax, 4
je 0x456bcf
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
mov dword [esp + 0x14], ecx
jmp 0x456be1
sub ebp, esi
and ebp, 0xfffffffe
cmp ebp, 4
jne 0x456be1
mov dword [esp + 0x14], 0
cmp ebx, 2
je 0x456c01
cmp ebx, 1
je 0x456c01
cmp ebx, 3
je 0x456c01
mov ecx, dword [esp + 0xc0]
cmp word [ecx], 0
je 0x456d24
mov edx, dword [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push edx
lea ecx, [esp + 0x3c]
call fcn.004167bc
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, eax
je 0x456c32
mov ecx, dword [esp + 0x28]
mov word [ecx], ax
mov ebp, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
push eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], edx
lea ecx, [esp + 0x40]
push ecx
push 0x20
mov dword [esp + 0x9c], edx
lea edx, [esp + 0x80]
push edx
push eax
push eax
push 0x74004
push ebp
mov dword [esp + 0x94], eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x50], eax
xor eax, eax
push eax
lea edx, [esp + 0x40]
push edx
push 0x200
mov dword [esp + 0x60], ecx
push esi
mov ecx, 0x80
mov edi, esi
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test ebp, ebp
je 0x456cce
cmp ebp, 0xffffffff
je 0x456cce
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 3
mov dword [esp + 0x20], 0
jne 0x456ce9
mov eax, dword [esi + 0x58]
imul eax, dword [esp + 0x40]
mov dword [esp + 0x38], eax
jmp 0x456d28
cmp ebx, 2
je 0x456cf3
cmp ebx, 1
jne 0x456d28
cmp ebx, 2
movzx edi, word [esi + 0xe]
mov al, byte [esi + 0x10]
movzx ecx, word [esi + 0x11]
jne 0x456d08
mov edx, dword [esi + 0x24]
jmp 0x456d0c
movzx edx, word [esi + 0x16]
movzx eax, al
imul eax, edx
add eax, edi
imul eax, dword [esp + 0x40]
shl ecx, 5
add eax, ecx
mov dword [esp + 0x38], eax
jmp 0x456d28
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0xa8]
push 0
push 0x80
push 3
push 0
push 7
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.004167bc
mov ebx, dword [esp + 0x20]
xor edi, edi
cmp ebx, edi
jne 0x456d5b
mov dword [esp + 0x14], edi
jmp 0x456fc6
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x4c]
push edx
push eax
push 0x4f49a8
push 0x28
push ebp
call fcn.004c1f3f
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, dword [esp + 0x40]
imul ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
xor eax, eax
push eax
push ebp
push str._I64u
push 0x28
push edi
mov dword [esp + 0x2c], ebp
call fcn.004c1f3f
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor eax, eax
push eax
mov edi, esi
mov ecx, 0x4000a
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
push 0x100020
add esi, 8
push esi
push 8
lea edx, [esp + 0x80]
push edx
push 0x90073
push ebx
mov dword [esi], 0x10000
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x456e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
mov dword [esp + 0x14], eax
jne 0x456fc6
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push 0xffffffffffffffda
push eax
call fcn.004458f0
add esp, 0xc
jmp 0x456fc6
mov ebx, dword [esi]
mov ecx, dword [esp + 0x1c]
inc ebx
imul ebx, ebx, 0x64
lea eax, [ebx + ebx + 2]
push ecx
call fcn.00445f60
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x1c], edi
je 0x456e4a
mov word [edi + ebx*2], 0
mov edx, dword [esi]
or ecx, 0xffffffff
or eax, 0xffffffff
test edx, edx
mov ebx, edi
jbe 0x456e7f
mov eax, dword [esi + 0x1c]
test eax, eax
mov ecx, dword [esi + 0x18]
jl 0x456e7f
jg 0x456e68
test ecx, ecx
jb 0x456e7f
push eax
push ecx
xor eax, eax
push eax
push ebp
call fcn.004b08b0
xor ecx, ecx
add eax, dword [esp + 0x38]
adc edx, ecx
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push 0x4f49a8
push 0x28
push edx
call fcn.004c1f3f
mov eax, dword [esp + 0x48]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov eax, dword [esi]
je 0x456eac
neg eax
mov ecx, dword [esp + 0x44]
cdq
push edx
push eax
push 0x4f49a8
push 0x28
push ecx
call fcn.004c1f3f
mov edx, dword [esp + 0x58]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xb8]
cmp word [ecx], 0
lea eax, [esi + 8]
mov dword [esp + 0x14], eax
je 0x456fa2
cmp dword [esi], 0
mov dword [esp + 0x10], 0
jbe 0x456fb6
add esi, 0x10
jmp 0x456f00
mov ebp, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
xor eax, eax
push eax
mov eax, dword [esi + 8]
push ebp
push edx
push eax
call fcn.004b08b0
mov ecx, dword [esi]
mov edi, eax
mov ebp, edx
add edi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov eax, 0
adc ebp, eax
sub ecx, dword [edx]
xor eax, eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push ecx
call fcn.004b08b0
cmp edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
jb 0x456f4e
ja 0x456f48
cmp eax, ecx
jbe 0x456f4e
mov edx, dword [esp + 0x30]
mov eax, ecx
push edx
push eax
push ebp
sub ecx, eax
push edi
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x40]
push str._I64u__I64u_r_n
sbb ecx, edx
push 0x64
push ebx
mov dword [esp + 0x4c], ecx
call fcn.004c1f3f
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 8]
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x10]
add ecx, 8
inc eax
mov dword [esp + 0x14], esi
add esi, 0x10
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x456efc
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jbe 0x456fb6
mov word [ebx - 4], 0
mov ecx, dword [esi]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x456fca
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xac]
mov esi, dword [esp + 0xa4]
push edx
push eax
mov ecx, esi
call fcn.00444550
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xb0]
push ecx
push edx
mov ecx, esi
call fcn.00444550
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xb4]
push eax
push ecx
mov ecx, esi
call fcn.00444550
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0xbc]
push edx
push eax
mov ecx, esi
call fcn.00444550
mov ecx, dword [esp + 0xb8]
push edi
push ecx
mov ecx, esi
call fcn.00444550
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x64]
push edx
push eax
push 0x4f49a8
push 0x28
push ebp
call fcn.004c1f3f
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc0]
push ebp
push ecx
mov ecx, esi
call fcn.00444550
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc4]
push edx
push eax
mov ecx, esi
call fcn.00444550
test ebx, ebx
je 0x45708a
cmp ebx, 0xffffffff
je 0x45708a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
mov edx, dword [0x51927c]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add ecx, 0xfffffff8
push ecx
push 0
push edx
call esi
test edi, edi
pop ebp
pop ebx
je 0x4570b7
mov eax, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push eax
call esi
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x90
ret