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

Disassembly:
push 0x54
mov eax, 0x6077a6
call fcn.004db48b
mov ebx, ecx
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov eax, dword [0x668294]
mov dword [ebp - 0x10], eax
cmp edi, 0xffffffff
jne 0x556760
push 0x8197
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041129f
mov esi, dword [ebp - 0x10]
push 0x30
push dword [0x674764]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x5569cf
call fcn.00407965
jmp 0x5569cf
push 0x819a
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041129f
mov esi, dword [ebp - 0x10]
push 0x23
push dword [0x674764]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
mov dword [ebp - 0x1c], eax
cmp ecx, 0x668010
je 0x556799
call fcn.00407965
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, 6
sete cl
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x40]
call fcn.0041b9fb
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x40]
call fcn.0041ba0f
push 2
push edi
push 0x100c
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5567b0
mov eax, dword [ebp - 0x14]
inc eax
imul eax, dword [ebp - 0x3c]
push 2
imul eax, eax, 0x105
inc eax
push eax
call fcn.00507365
mov esi, eax
mov dword [ebp - 0x28], esi
pop ecx
pop ecx
test esi, esi
je 0x5569c7
cmp dword [ebp - 0x3c], 0
jle 0x5569c0
xor eax, eax
mov edi, esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x3c], eax
jle 0x55696d
push eax
lea ecx, [ebp - 0x40]
call fcn.0042bf74
mov ecx, ebx
push dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.0055701e
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x55695a
mov ecx, esi
call fcn.004228b8
test eax, eax
je 0x556858
push 0xffffffffffffffff
push 0xe102
push 0x111
push dword [0x674760]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.005d65c3
push 0x637f04
push dword [eax]
call fcn.005144ec
neg eax
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
sbb al, al
inc al
add ecx, 0xfffffff4
mov dword [ebp - 0x18], eax
cmp ecx, 0x668010
je 0x556890
call fcn.00407965
mov eax, dword [ebp - 0x18]
test al, al
jne 0x556953
cmp dword [esi + 0xc0], 1
mov ecx, esi
je 0x556955
lea eax, [ebp - 0x30]
push eax
call fcn.0041be56
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5568dc
test al, 0x10
jne 0x5568dc
push dword [ebp - 0x30]
push edi
call fcn.00504cbe
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov eax, dword [eax - 8]
lea edi, [edi + eax*2]
add edi, 2
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x14], 0
je 0x556940
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 edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x55692d
test al, 0x10
jne 0x55692d
push edi
push dword [ebp - 0x10]
call fcn.00504cbe
mov eax, dword [edi - 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, [edi - 0xc]
cmp ecx, 0x668010
je 0x55693d
call fcn.00407965
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x556953
call fcn.00407965
mov ecx, esi
call fcn.00416ed3
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x3c]
jl 0x556814
mov esi, dword [ebp - 0x28]
mov eax, dword [ebx + 4]
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 0x60], eax
push 0x40
pop eax
movlpd qword [ebp - 0x4a], xmm0
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4e], edi
cmp word [esi], di
je 0x5569ac
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x5569c0
cmp dword [ebp - 0x4e], edi
jne 0x5569c0
push edi
push 0x90b2
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call fcn.0050524d
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0041ba68
xor eax, eax
call fcn.004db459
ret 0x10