Function at 0x461cd0
Capabilities:
Get disk size
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5080a9
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jl 0x462023
push 0x52174c
push eax
call fcn.004e5d72
add esp, 8
test eax, eax
je 0x462023
mov ecx, dword [ebp + 0xc]
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x462023
mov edi, dword [0x565ae0]
mov dword [ebp - 0xc4], 0x14
lea esi, [edi + 1]
lea eax, [edi + 2]
imul eax, esi
imul eax, edi
cdq
idiv dword [ebp - 0xc4]
push 0x5c
push ecx
cmp edx, 0x11
cmove edi, esi
mov dword [0x565ae0], edi
call fcn.004e7438
add esp, 8
test eax, eax
je 0x461f5f
sub eax, dword [ebp + 0xc]
sar eax, 1
test eax, eax
jle 0x461f5f
inc eax
push eax
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp + 0xc]
call fcn.004074d0
push str.VisualElementsManifest.xml
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 1
call fcn.004029e0
add esp, 0xc
mov eax, dword [ebp - 0xbc]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
mov byte [ebp - 4], 2
jge 0x461dfe
push 0
lea ecx, [ebp - 0xbc]
call fcn.004077f0
mov eax, dword [ebp - 0xbc]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x461ef3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc4], eax
add eax, 0xa
push eax
call fcn.004ea45b
add esp, 4
mov edi, eax
call fcn.00465e80
test al, al
jne 0x461e57
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
call fcn.00465ee0
test al, al
jne 0x461e6b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x565ae0], eax
push 0
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xc4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xcc]
push str.SplashScreen_Image
push edi
mov byte [eax + edi], 0
call fcn.004eb760
mov esi, eax
add esp, 8
test esi, esi
je 0x461ef3
add esi, 0x14
push 0x5c
push esi
call fcn.004eb630
add esp, 8
test eax, eax
je 0x461ef3
sub esp, 0x18
mov ecx, esp
push esi
mov byte [eax], 0
call fcn.00401000
push ebx
call fcn.0048c4c0
add esp, 0x1c
lea ecx, [ebp - 0xbc]
call fcn.00401fa0
lea ecx, [ebp - 0xc0]
call fcn.00401fa0
lea ecx, [ebp + 0xc]
call fcn.00401fa0
jmp 0x462091
mov ecx, dword [0x565ae0]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 5
jne 0x461f14
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edx, dword [ebp - 0xbc]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x461f3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc0]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x461f62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x461f62
or edi, 0xffffffff
mov ebx, dword [0x565ae0]
mov eax, ebx
imul eax, ebx
and eax, 0x8000000f
jns 0x461f79
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 3
jne 0x46201d
xor eax, eax
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0xb8]
xor edx, edx
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], ecx
mov edi, edi
lea ecx, [eax + 1]
lea edi, [edx + 1]
mov eax, ebx
cdq
idiv ecx
mov eax, ebx
mov ecx, ebx
sub ecx, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xc0]
mov esi, edx
cdq
imul esi, ecx
idiv edi
add esi, eax
sub esi, dword [ebp - 0xc4]
push esi
push 0x516624
call fcn.004e65a9
mov eax, dword [ebp - 0xbc]
mov edx, edi
add ebx, 4
add esp, 8
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], ebx
cmp edx, 0xe
jge 0x461ffd
mov ebx, dword [0x565ae0]
jmp 0x461fa0
inc eax
mov dword [ebp - 0xbc], eax
cmp eax, 3
jge 0x46201a
mov ebx, dword [0x565ae0]
mov ecx, dword [ebp - 0xc0]
jmp 0x461f90
or edi, 0xffffffff
mov ebx, dword [ebp - 0xc8]
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, 0x521418
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x462062
movzx esi, ax
push 0
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x462070
push esi
push eax
mov ecx, ebx
call fcn.00407600
jmp 0x462070
push 3
push 0x521418
mov ecx, ebx
call fcn.00409890
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x462091
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret