Function at 0x42a320
Capabilities:
Check if file exists
Check mutex on windows
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a018b
mov eax, dword fs:[0]
push eax
mov eax, 0x109c
call fcn.00488190
mov eax, dword [0x4c9890]
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, ecx
mov dword [ebp - 0x109c], ebx
cmp dword [ebx + 0x1060], 0
jne 0x42a36d
mov eax, 1
jmp 0x42a72a
dec dword [ebx + 0x1160]
push dword [ebx + 0x1160]
mov edi, dword [ebp + 8]
push edi
push str.CInternal::Uninit
push str._UNO___s__Flush:_d__ref_d
call fcn.00422df0
add esp, 0x10
test byte [ebx + 0x1168], 1
je 0x42a3db
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004866f0
push edi
lea eax, [ebp - 0x218]
push str.UNO_uninit:_flush___d
push eax
call fcn.00424c20
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push str._UNO_
mov ecx, ebx
call fcn.00427a40
cmp dword [ebx + 0x1160], 0
jne 0x42a728
mov eax, dword [ebx + 0x1134]
test eax, eax
je 0x42a407
push 0xffffffffffffffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
mov dword [ebx + 0x1134], 0
lea esi, [ebx + 0x1148]
push esi
mov dword [ebp - 0x10a8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
mov dword [ebp - 4], 0
call fcn.004866f0
add esp, 0xc
lea eax, [ebx + 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a4ca
cmp dword [ebx + 0x1054], 0
je 0x42a4ca
push str.CInternal::Uninit
push str._UNO___s__copy_temp_to_CBE_folder
call fcn.00422df0
add esp, 8
lea eax, [ebx + 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebx + 0x14]
push eax
lea eax, [ebp - 0x628]
push str._s_s
push eax
call fcn.0042f2d0
add esp, 0x10
lea eax, [ebp - 0x628]
push 0
push eax
lea eax, [ebx + 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x628]
push eax
push str.CInternal::Uninit
push str._UNO___s__move_file:_s
call fcn.00422df0
add esp, 0xc
mov dword [ebx + 0x105c], 1
test edi, edi
jne 0x42a4de
cmp dword [ebx + 0x105c], edi
je 0x42a508
cmp dword [ebx + 0x1058], edi
je 0x42a508
cmp dword [ebx + 0x1110], 2
je 0x42a508
push str.CInternal::Uninit
push str._UNO___s__CallWorker_THREAD_UPLOAD
call fcn.00422df0
mov ecx, dword [ebx + 0x107c]
add esp, 8
push 0xffffffffffffffff
push 2
call fcn.0042fd90
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.004866f0
push 0xa
lea eax, [ebp - 0x420]
push eax
push dword [ebx + 0x111c]
call fcn.0048ab07
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x18
add ebx, 0x62c
push ebx
lea eax, [ebp - 0x420]
push eax
push str.interval
push 0x4ae33c
call edi
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x109c]
push dword [eax + 0x1120]
call fcn.0048ab07
add esp, 0xc
lea eax, [ebp - 0x420]
push ebx
push eax
push str.init_interval
push 0x4ae33c
call edi
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x109c]
push dword [eax + 0x1128]
call fcn.0048ab07
add esp, 0xc
lea eax, [ebp - 0x420]
push ebx
push eax
push str.size
push 0x4ae33c
call edi
push str.CInternal::Uninit
push str._UNO___s__call_THREAD_EXIT
call fcn.00422df0
mov ebx, dword [ebp - 0x109c]
add esp, 8
mov ecx, dword [ebx + 0x107c]
test ecx, ecx
je 0x42a621
call fcn.00430300
test eax, eax
je 0x42a607
mov ecx, dword [ebx + 0x107c]
push 0xffffffffffffffff
push 6
call fcn.0042fd90
push dword [ebx + 0x1068]
mov ecx, dword [ebx + 0x107c]
call fcn.0042ff40
mov ecx, dword [ebx + 0x107c]
test ecx, ecx
je 0x42a617
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x107c], 0
cmp dword [ebx + 0x1064], 0
je 0x42a6c9
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.004866f0
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
lea edi, [ebx + 0x21c]
push edi
mov ecx, ebx
call fcn.0042d080
cmp dword [ebx + 0x116c], 0
mov dword [ebp - 0x10a4], 0
je 0x42a748
lea eax, [ebp - 0x830]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x10a4], eax
test eax, eax
je 0x42a748
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42a748
push edi
push str._UNO__move_to_TOGO__other_exe_UNO_access_the_TOGO_folder__give_up_this_time:__s
call fcn.00422df0
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10a4]
test eax, eax
je 0x42a6c9
push eax
call edi
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x42a6dd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 4], 0
push dword [ebp - 0x10a8]
lea eax, [ebp - 0x109d]
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.004243e0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
push str.CInternal::Uninit
push str._UNO___s__Success
mov dword [ebx + 0x1060], 0
mov dword [ebx + 0x1118], 0
call fcn.00422df0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
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.00487c50
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xe48], ax
lea eax, [ebp - 0xe46]
push eax
call fcn.004866f0
add esp, 0xc
lea eax, [ebp - 0xe48]
push eax
lea edi, [ebx + 0x14]
push edi
mov ecx, ebx
call fcn.0042d080
cmp dword [ebx + 0x116c], 0
mov dword [ebp - 0x109c], 0
je 0x42a7c6
lea eax, [ebp - 0xe48]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x109c], eax
test eax, eax
je 0x42a7c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42a7c6
push edi
push str._UNO__move_to_TOGO__other_exe_UNO_access_the_local_folder__give_up_this_time:__s
call fcn.00422df0
add esp, 8
jmp 0x42a8f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0xc3e]
push eax
call fcn.004866f0
push edi
lea eax, [ebp - 0xc40]
push str._s.json
push eax
call fcn.0042f2d0
add esp, 0x18
lea eax, [ebp - 0x1098]
push eax
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42a8f0
lea esi, [ebx + 0x14]
jmp 0x42a820
test byte [ebp - 0x1098], 0x10
jne 0x42a8cd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
push eax
call fcn.004866f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004866f0
lea eax, [ebp - 0x106c]
push eax
push esi
lea eax, [ebp - 0xa38]
push str._s_s
push eax
call fcn.0042f2d0
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebx + 0x21c]
push eax
lea eax, [ebp - 0x218]
push str._s_s
push eax
call fcn.0042f2d0
add esp, 0x38
lea eax, [ebp - 0x218]
push 0
push eax
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x218]
push eax
push str.CInternal::Uninit
push str._UNO___s_move_file_to_TOGO:__s
call fcn.00422df0
add esp, 0xc
lea eax, [ebp - 0x1098]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42a820
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea esi, [ebx + 0x1148]
mov eax, dword [ebp - 0x109c]
test eax, eax
je 0x42a6b6
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
jmp 0x42a6bc