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

Disassembly:
push 0x4c
mov eax, 0x607974
call fcn.004db48b
mov ebx, ecx
mov dword [ebp - 0x30], ebx
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x5c0]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x55762f
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 0x5573b3
call fcn.00407965
cmp edi, 2
je 0x55762f
xor eax, eax
mov ecx, ebx
cmp edi, 6
sete al
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00558310
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x557421
mov eax, dword [0x668294]
push 0x8197
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.0041129f
mov esi, dword [ebp - 0x18]
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 0x557624
call fcn.00407965
jmp 0x557624
push ecx
mov eax, esp
mov dword [eax], edi
lock inc dword [edi + 0x34]
call fcn.00557d6a
test eax, eax
je 0x557624
mov eax, dword [ebp - 0x1c]
mov esi, dword [edi + 4]
inc eax
imul eax, esi
push 2
mov dword [ebp - 0x2c], esi
imul eax, eax, 0x105
inc eax
push eax
call fcn.00507365
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x557624
test esi, esi
jle 0x55761d
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
push eax
mov ecx, edi
call fcn.0042b614
mov esi, dword [eax]
test esi, esi
je 0x5575b5
lock inc dword [esi + 4]
mov ecx, esi
call fcn.004228b8
test eax, eax
je 0x5574a8
push 0xffffffffffffffff
push 0xe102
push 0x111
push dword [0x674760]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x28]
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 - 0x28]
sbb al, al
inc al
add ecx, 0xfffffff4
mov dword [ebp - 0x18], eax
cmp ecx, 0x668010
je 0x5574e0
call fcn.00407965
mov eax, dword [ebp - 0x18]
test al, al
jne 0x5575ae
cmp dword [esi + 0xc0], 1
je 0x557639
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0041be56
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x557531
test al, 0x10
jne 0x557531
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call fcn.00504cbe
mov eax, dword [ebp - 0x38]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax - 8]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x1c], 0
je 0x55759b
mov eax, dword [0x668294]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0042bee0
lea eax, [ebp - 0x38]
push eax
call fcn.004270c3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x557588
test al, 0x10
jne 0x557588
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.00504cbe
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [eax - 8]
lea edx, [edx + ecx*2]
add edx, 2
mov dword [ebp - 0x14], edx
jmp 0x55758b
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x668010
je 0x55759b
call fcn.00407965
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5575ae
call fcn.00407965
mov ecx, esi
call fcn.00416ed3
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x2c]
jl 0x55746f
mov esi, dword [ebp - 0x30]
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x54], 3
push 0x40
movlpd qword [ebp - 0x42], xmm0
mov eax, dword [esi + 4]
mov dword [ebp - 0x58], eax
pop eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x48], ax
mov dword [ebp - 0x46], ecx
cmp word [ebx], cx
je 0x557609
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x55761d
cmp dword [ebp - 0x46], eax
jne 0x55761d
xor ecx, ecx
push ecx
push 0x8cbb
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call fcn.0050524d
pop ecx
test edi, edi
je 0x55762f
mov ecx, edi
call fcn.00422d15
xor eax, eax
call fcn.004db459
ret 0x10
push ebx
call fcn.0050524d
pop ecx
mov ecx, esi
call fcn.00416ed3
jmp 0x557624