Function at 0x442650
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x50e68e
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov ebp, dword [esp + 0x154]
mov eax, dword [ebp + 4]
dec eax
cmp eax, 4
ja case.0x442695.4
jmp dword [eax*4 + 0x442a34]
mov ebx, dword [esp + 0x15c]
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.00435480
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov ebx, esi
mov dword [esp + 0x15c], 0
call fcn.00435480
lea edx, [esp + 0x48]
push ebp
push edx
mov ebx, edi
mov byte [esp + 0x164], 1
call fcn.00435480
push eax
lea eax, [esp + 0x38]
push eax
mov ebx, str..patch
mov byte [esp + 0x16c], 2
call fcn.00417ae0
add esp, 0x20
mov byte [esp + 0x14c], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44271e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx - 0xc], 0
lea eax, [ebp + 0x10]
je 0x442761
mov ebx, dword [esp + 0x15c]
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00435480
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x14c], 5
call fcn.00404f20
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 4
call fcn.00406cf0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x15c]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00443d00
test eax, eax
jne 0x4427b9
mov ecx, dword [ebp]
push ecx
push str.apply_patch_for__S_failed
mov ecx, 0x546980
call fcn.004df340
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00406cf0
lea ecx, [esp + 0x24]
call fcn.00406cf0
lea ecx, [esp + 0x18]
call fcn.00406cf0
xor eax, eax
jmp 0x442a18
lea esi, [esp + 0x24]
lea ecx, [esp + 0x2c]
call fcn.004a4290
lea edx, [esp + 0x2c]
mov byte [esp + 0x14c], 6
mov ecx, dword [ebp + 0xc]
push edx
call fcn.0041ca50
test eax, eax
je 0x442805
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push str.patched_file_md5_not_match___S_vs__S
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00406cf0
jmp 0x442797
lea ecx, [esp + 0x2c]
call fcn.00406cf0
lea ecx, [esp + 0x1c]
call fcn.00406cf0
lea ecx, [esp + 0x24]
call fcn.00406cf0
lea ecx, [esp + 0x18]
jmp 0x442a0e
lea edx, [esp + 0x34]
push ebp
push edx
mov ebx, esi
call fcn.00435480
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x442695.4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp case.0x442695.4
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov ebx, edi
call fcn.00435480
lea edx, [esp + 0x20]
push ebp
push edx
mov ebx, esi
mov dword [esp + 0x15c], 7
call fcn.00435480
add esp, 0x10
mov byte [esp + 0x14c], 8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push 3
mov dword [esp + 0x40], eax
push ecx
lea eax, [esp + 0x44]
call fcn.004288a0
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x4428d3
push eax
call fcn.004ea5da
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x442925
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push str.copy_file__S_to__S_failed:__u
mov ecx, 0x546980
call fcn.004df340
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.00406cf0
lea ecx, [esp + 0x1c]
call fcn.00406cf0
xor eax, eax
jmp 0x442a18
lea ecx, [esp + 0x18]
call fcn.00406cf0
lea ecx, [esp + 0x1c]
jmp 0x442a0e
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, esi
call fcn.00435480
lea edx, [esp + 0x28]
push ebp
push edx
mov dword [esp + 0x15c], 9
call fcn.00435480
add esp, 0x10
mov byte [esp + 0x14c], 0xa
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc4]
push 3
mov dword [esp + 0xc4], eax
push ecx
lea eax, [esp + 0xc8]
call fcn.004288a0
mov edx, dword [esp + 0xc0]
push edx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xc4]
cmp eax, ecx
je 0x4429b2
push eax
call fcn.004ea5da
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x442a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push str.move_file__S_to__S_failed:__u
mov ecx, 0x546980
call fcn.004df340
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.00406cf0
lea ecx, [esp + 0x28]
call fcn.00406cf0
xor eax, eax
jmp 0x442a18
lea ecx, [esp + 0x20]
call fcn.00406cf0
lea ecx, [esp + 0x28]
call fcn.00406cf0
mov eax, 1
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 0xc