Function at 0x547de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xab8
push ebx
push ebp
mov ebp, dword [esp + 0xac8]
push esi
mov esi, eax
mov eax, dword [esp + 0xad0]
test eax, eax
push edi
je 0x547e03
mov word [eax], 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x547e2c
mov eax, dword [esp + 0xacc]
mov dword [eax], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab8
ret 0xc
mov eax, dword [esi + 4]
call fcn.00401cc0
mov edi, eax
push esi
lea eax, [esp + 0x2a4]
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2b0], edi
call fcn.005470f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x547e71
mov ecx, dword [esp + 0xacc]
mov dword [ecx], eax
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab8
ret 0xc
mov esi, dword [esi + 4]
push 3
push 1
push SysReAllocStringLen
push esi
mov eax, 0xea60
call fcn.004abf70
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x547e12
xor ebx, ebx
lea esi, [esp + 0x40]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call fcn.0054d5b0
test edi, edi
jbe 0x547fa0
cmp dword [esp + 0x60], 0xffffffff
jne 0x547ed9
push 0xea60
lea edx, [esp + 0x6b8]
push edx
push ebp
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
call fcn.00541fe0
mov eax, dword [eax]
test eax, eax
jne 0x547fd9
mov eax, edi
sub eax, ebx
cmp eax, 0x20000000
mov esi, ebx
jb 0x547eeb
mov eax, 0x20000000
mov ecx, edi
test ecx, ecx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], 0x6dbc50
jge 0x547f0b
fadd qword [0x7235b8]
test ebx, ebx
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
jge 0x547f1d
fadd qword [0x7235b8]
fdiv st(1)
mov edx, eax
test edx, edx
mov dword [esp + 0x1c], edx
fstp qword [esp + 0x2c]
fild dword [esp + 0x1c]
jge 0x547f37
fadd qword [0x7235b8]
fdivrp st(1)
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2b4]
lea ecx, [esp + 0x38]
fstp qword [esp + 0x48]
call fcn.00547980
mov eax, dword [eax]
cmp eax, 1
je 0x547ff5
test eax, eax
mov ebx, dword [esp + 0x18]
jne 0x547f83
cmp ebx, esi
jbe 0x547f8c
mov dword [esp + 0x14], 0
jmp 0x547f98
lea esi, [esp + 0x40]
call fcn.00499be0
add dword [esp + 0x14], 1
cmp dword [esp + 0x14], 3
jae 0x54800c
cmp ebx, edi
jb 0x547eac
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x2ac]
call fcn.005476e0
mov eax, dword [eax]
test eax, eax
je 0x548031
mov edi, dword [esp + 0xacc]
lea esi, [esp + 0x40]
mov dword [edi], eax
call fcn.00499ba0
mov eax, dword [esp + 0x10]
push eax
jmp 0x54807c
mov edi, dword [esp + 0xacc]
lea esi, [esp + 0x40]
mov dword [edi], eax
call fcn.00499ba0
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x54807c
mov edi, dword [esp + 0xacc]
mov dword [edi], 1
mov dword [esp + 0x24], 0x70c5e4
jmp 0x54806e
mov edi, dword [esp + 0xacc]
lea esi, [esp + 0x40]
mov dword [edi], 2
mov dword [esp + 0x24], 0x70c5e4
call fcn.00499ba0
mov eax, dword [esp + 0x10]
push eax
jmp 0x54807c
mov edi, dword [esp + 0xad4]
test edi, edi
je 0x548061
cmp word [esp + 0x8bc], 0
je 0x548061
lea ecx, [esp + 0x8bc]
push ecx
push str.https:__vimeo.com__s
mov esi, 0x2002
call fcn.004af0d0
add esp, 8
mov edi, dword [esp + 0xacc]
mov dword [edi], 0
lea esi, [esp + 0x40]
call fcn.00499ba0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab8
ret 0xc