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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54c1b4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 2
jne 0x42d486
xor al, al
jmp 0x42d650
mov eax, dword [esi + 0x80]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x14]
jb 0x42d605
mov ecx, dword [esi + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x54bf28]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf28
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], 0
mov edx, dword [0x54bf28]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf28
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 0x42d4f5
mov eax, dword [eax]
cmp dword [esi + 0x2c], edx
lea ecx, [esi + 0x18]
jb 0x42d4ff
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.00407fa0
mov eax, dword [esp + 0x2c]
mov ebx, 1
push ebx
push eax
push str._s__d_.log
lea edi, [esp + 0x3c]
call fcn.00407fa0
mov edi, dword [esp + 0x3c]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d577
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.00407fa0
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42d550
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x515ef0
call fcn.0042e790
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 0x42d5ba
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 0x42d5df
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 0x42d63e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42d63e
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dx, word [esi + 0x6e]
cmp dx, word [esp + 0x20]
jne 0x42d631
mov ax, word [esi + 0x70]
cmp ax, word [esp + 0x22]
jne 0x42d631
mov cx, word [esi + 0x74]
cmp cx, word [esp + 0x26]
je 0x42d64e
mov edx, dword [esi + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0042d940
mov byte [esi + 0x6c], 0
call fcn.0042dd20
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.004bb4e3
mov esp, ebp
pop ebp
ret