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

Disassembly:
push 0x54
mov eax, 0x607562
call fcn.004db48b
mov ebx, ecx
mov dword [ebp - 0x28], ebx
xor eax, eax
cmp dword [ebx + 0x4a8], 1
jne 0x55503b
cmp dword [ebp + 0x10], 0xffffffff
mov edi, eax
mov dword [ebp - 0x18], edi
je 0x554d9c
mov eax, dword [0x668294]
push 0x819a
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.0041129f
mov esi, dword [ebp - 0x18]
push 0x23
push dword [0x674764]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
mov edi, eax
cmp ecx, 0x668010
je 0x554d86
call fcn.00407965
cmp edi, 2
je 0x55503b
xor eax, eax
cmp edi, 6
sete al
mov dword [ebp - 0x18], eax
mov edi, eax
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je 0x55503b
lea ecx, [ebp - 0x40]
call fcn.0041b9fb
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x40]
call fcn.0041ba0f
push 2
push esi
push 0x100c
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x554dc5
lea eax, [edi + 1]
mov edi, dword [ebp - 0x3c]
imul eax, edi
push 2
imul eax, eax, 0x105
inc eax
push eax
call fcn.00507365
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x555033
test edi, edi
jle 0x55502c
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], eax
test edi, edi
jle 0x554f3f
lea ecx, [ebx + 0x508]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0041ba49
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x18], eax
call fcn.0041b97a
lea ecx, [ebp - 0x24]
mov eax, dword [eax]
add eax, 0x3c
push eax
call fcn.0040d36e
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x554e84
test al, 0x10
jne 0x554e84
push edi
push esi
call fcn.00504cbe
mov eax, dword [edi - 8]
pop ecx
pop ecx
lea esi, [esi + eax*2]
add esi, 2
mov dword [ebp - 0x10], esi
test ebx, ebx
je 0x554f13
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.0041b97a
mov ecx, dword [eax]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ecx + 0x74]
call fcn.0041be56
mov eax, dword [0x668294]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042bee0
lea eax, [ebp - 0x30]
push eax
call fcn.004270c3
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x554ef0
test al, 0x10
jne 0x554ef0
push esi
push dword [ebp - 0x10]
call fcn.00504cbe
mov eax, dword [esi - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x10], ecx
lea ecx, [esi - 0xc]
mov esi, 0x668010
cmp ecx, esi
je 0x554f01
call fcn.00407965
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x554f10
call fcn.00407965
mov esi, dword [ebp - 0x10]
lea ecx, [edi - 0xc]
mov byte [ebp - 4], 0
cmp ecx, 0x668010
je 0x554f27
call fcn.00407965
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, edi
jl 0x554e33
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
and dword [ebp - 0x54], 0
cmp dword [ebp + 0x10], 0xffffffff
push 0x40
mov dword [ebp - 0x60], eax
pop eax
push 0x54
pop edx
cmove eax, edx
movlpd qword [ebp - 0x4a], xmm0
mov word [ebp - 0x50], ax
xor eax, eax
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4e], eax
cmp word [ecx], ax
je 0x554f91
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x555029
cmp dword [ebp - 0x4e], eax
jne 0x555029
lea esi, [edi - 1]
test esi, esi
js 0x554ff8
lea edi, [ebx + 0x508]
push esi
lea ecx, [ebp - 0x40]
call fcn.0041ba49
mov ecx, edi
push dword [eax]
call fcn.0041b97a
mov ecx, dword [eax]
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ecx + 0x74]
call fcn.005d61f7
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebx + 0x518]
call fcn.0042bcf3
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x554fe0
call fcn.00407965
push esi
lea ecx, [ebp - 0x40]
call fcn.0041ba49
push ecx
mov ecx, edi
push dword [eax]
call fcn.0042be4c
sub esi, 1
jns 0x554f9e
xor eax, eax
push eax
push dword [ebx + 0x50c]
push 0x102f
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebx + 0x50c]
mov ecx, ebx
call fcn.0055a32f
push dword [ebx + 0x4fc]
mov ecx, ebx
call fcn.0055a2c5
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0050524d
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0041ba68
xor eax, eax
call fcn.004db459
ret 0x10