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

Disassembly:
push 0xffffffffffffffff
push 0x49088b
mov eax, dword fs:[0]
push eax
sub esp, 0xc8c
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0xc88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0xca0]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0xdd0]
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebp, ebp
mov dword [esp + 0xca8], ebp
cmp dword [esi + 0xc5c], ebp
jne 0x422e7e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 1]
jmp 0x42320b
mov ebx, dword [esp + 0xcb0]
push ebx
push str.CInternal::Uninit
push str._UNO___s__Flush:_d
call fcn.00419c60
mov eax, dword [esi + 0xdbc]
add esp, 0xc
cmp eax, ebp
je 0x422eb1
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
mov dword [esi + 0xdbc], ebp
push 0x204
lea eax, [esp + 0x484]
push ebp
push eax
mov dword [esp + 0x488], ebp
call fcn.00477c40
add esp, 0xc
lea edi, [esi + 0x430]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422f3c
cmp dword [esi + 0xc50], ebp
je 0x422f3c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esi + 0x20]
push ecx
lea edx, [esp + 0x484]
push 0x49a034
push edx
call fcn.00401570
add esp, 0x10
push ebp
lea eax, [esp + 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x47c]
push ecx
push str.CInternal::Uninit
push str._UNO___s__move_file:_s
call fcn.00419c60
add esp, 0xc
mov dword [esi + 0xc58], 1
cmp ebx, ebp
jne 0x422f50
cmp dword [esi + 0xc58], ebp
je 0x422f68
cmp dword [esi + 0xc54], ebp
je 0x422f68
cmp dword [esi + 0xda8], 2
je 0x422f68
mov ecx, dword [esi + 0xc70]
push 0xffffffffffffffff
push 2
call fcn.00426bd0
push 0x206
lea eax, [esp + 0x27a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x280], dx
call fcn.00477c40
mov edx, dword [esi + 0xdac]
push 0xa
lea ecx, [esp + 0x284]
push ecx
push edx
call fcn.0047b3dd
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x18
lea edi, [esi + 0x638]
push edi
lea eax, [esp + 0x278]
push eax
push str.interval
push 0x49b054
call ebx
mov edx, dword [esi + 0xdb0]
push 0xa
lea ecx, [esp + 0x278]
push ecx
push edx
call fcn.0047b3dd
add esp, 0xc
push edi
lea eax, [esp + 0x278]
push eax
push str.init_interval
push 0x49b054
call ebx
mov edx, dword [esi + 0xdb4]
push 0xa
lea ecx, [esp + 0x278]
push ecx
push edx
call fcn.0047b3dd
add esp, 0xc
push edi
lea eax, [esp + 0x278]
push eax
push str.size
push 0x49b054
call ebx
mov ebx, dword [esi + 0x18]
cmp dword [esi + 0x14], ebx
lea edi, [esi + 8]
jbe 0x42302b
call fcn.004789ce
mov ecx, dword [edi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, dword [edi + 0x10]
jbe 0x423046
call fcn.004789ce
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
push ebx
push edx
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00421dd0
mov ecx, dword [esi + 0xc70]
cmp ecx, ebp
je 0x4230a9
call fcn.00426900
test eax, eax
je 0x423091
mov ecx, dword [esi + 0xc70]
push 0xfa0
push 6
call fcn.00426bd0
mov ecx, dword [esi + 0xc70]
push 0x3e8
call fcn.00426b50
mov ecx, dword [esi + 0xc70]
cmp ecx, ebp
je 0x4230a3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0xc70], ebp
cmp dword [esi + 0xc60], ebp
je 0x4231d4
push 0x204
lea ecx, [esp + 0xa9c]
push ebp
push ecx
mov dword [esp + 0xaa0], ebp
call fcn.00477c40
lea edi, [esi + 0x20]
push edi
lea edx, [esp + 0xaa4]
push str._s.json
push edx
call fcn.00401570
add esp, 0x18
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xa98]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4231d4
jmp 0x423110
test byte [esp + 0x24], 0x10
jne 0x4231b9
push 0x204
lea edx, [esp + 0x894]
push ebp
push edx
mov dword [esp + 0x898], ebp
call fcn.00477c40
push 0x204
lea eax, [esp + 0x698]
push ebp
push eax
mov dword [esp + 0x69c], ebp
call fcn.00477c40
lea ecx, [esp + 0x68]
push ecx
push edi
lea edx, [esp + 0x8ac]
push 0x49a034
push edx
call fcn.00401570
lea eax, [esp + 0x78]
push eax
lea ecx, [esi + 0x228]
push ecx
lea edx, [esp + 0x6b4]
push 0x49a034
push edx
call fcn.00401570
add esp, 0x38
push ebp
lea eax, [esp + 0x688]
push eax
lea ecx, [esp + 0x894]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [esp + 0x684]
push edx
push str.CInternal::Uninit
push str._UNO___s_move_file_to_TOGO:__s
call fcn.00419c60
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x423110
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x4231e6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 4], ebp
push str.CInternal::Uninit
push 0x49b19c
mov dword [esi + 0xc5c], ebp
call fcn.00419c60
mov ecx, dword [esp + 0x20]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0xca0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc88]
xor ecx, esp
call fcn.00477bf8
add esp, 0xc98
ret 4