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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3a10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54b1b4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x54b1b4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 2
jne 0x42c9d6
xor al, al
jmp 0x42cba0
mov eax, dword [esi + 0x80]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x14]
jb 0x42cb55
mov ecx, dword [esi + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x54af28]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af28
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], 0
mov edx, dword [0x54af28]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af28
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 0x42ca45
mov eax, dword [eax]
cmp dword [esi + 0x2c], edx
lea ecx, [esi + 0x18]
jb 0x42ca4f
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.00407bd0
mov eax, dword [esp + 0x2c]
mov ebx, 1
push ebx
push eax
push str._s__d_.log
lea edi, [esp + 0x3c]
call fcn.00407bd0
mov edi, dword [esp + 0x3c]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42cac7
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.00407bd0
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42caa0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x514cc8
call fcn.0042dce0
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 0x42cb0a
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 0x42cb2f
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 0x42cb8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42cb8e
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dx, word [esi + 0x6e]
cmp dx, word [esp + 0x20]
jne 0x42cb81
mov ax, word [esi + 0x70]
cmp ax, word [esp + 0x22]
jne 0x42cb81
mov cx, word [esi + 0x74]
cmp cx, word [esp + 0x26]
je 0x42cb9e
mov edx, dword [esi + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0042ce90
mov byte [esi + 0x6c], 0
call fcn.0042d270
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.004ba3af
mov esp, ebp
pop ebp
ret