Function at 0x42c1f0
Capabilities:
Check if file exists
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ea7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x53f1e4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 2
jne 0x42c236
xor al, al
jmp 0x42c400
mov eax, dword [esi + 0x80]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x14]
jb 0x42c3b5
mov ecx, dword [esi + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x53ef48]
mov eax, dword [edx + 0xc]
mov ecx, 0x53ef48
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], 0
mov edx, dword [0x53ef48]
mov eax, dword [edx + 0xc]
mov ecx, 0x53ef48
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esi + 0x34]
mov edx, 8
mov byte [esp + 0x40], 1
cmp dword [eax + 0x14], edx
jb 0x42c2a5
mov eax, dword [eax]
cmp dword [esi + 0x2c], edx
lea ecx, [esi + 0x18]
jb 0x42c2af
mov ecx, dword [ecx]
movzx edx, word [esi + 0x74]
push edx
movzx edx, word [esi + 0x70]
push edx
movzx edx, word [esi + 0x6e]
push edx
push eax
push ecx
push str._s_s_02d__02d__02d
lea edi, [esp + 0x2c]
call fcn.00408a70
mov eax, dword [esp + 0x2c]
mov ebx, 1
push ebx
push eax
push str._s__d_.log
lea edi, [esp + 0x3c]
call fcn.00408a70
mov edi, dword [esp + 0x3c]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c327
lea esp, [esp]
mov ecx, dword [esp + 0x14]
inc ebx
push ebx
push ecx
push str._s__d_.log
lea edi, [esp + 0x24]
call fcn.00408a70
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c300
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x50a688
call fcn.0042d490
mov eax, dword [eax]
add esp, 8
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c36a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c38f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c3ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42c3ee
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dx, word [esi + 0x6e]
cmp dx, word [esp + 0x20]
jne 0x42c3e1
mov ax, word [esi + 0x70]
cmp ax, word [esp + 0x22]
jne 0x42c3e1
mov cx, word [esi + 0x74]
cmp cx, word [esp + 0x26]
je 0x42c3fe
mov edx, dword [esi + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0042c6f0
mov byte [esi + 0x6c], 0
call fcn.0042cad0
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret