Function at 0x4209e0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48d980
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x564]
mov edx, dword [esi + 0x554]
sub edx, eax
test eax, eax
mov dword [esp + 0x10], edx
jbe 0x420b9e
mov ebx, dword [esi + 0x55c]
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 0x1c], ebx
test eax, eax
jne 0x420a48
push 0x80004005
call fcn.00416be0
mov eax, dword [ebx + 0x28]
lea edi, [esi + 0x138]
push eax
call fcn.004449a0
cmp dword [ebp + 0xc], 0x14
jne 0x420b9a
mov eax, dword [ebx + 0x38]
sub eax, 0x10
call fcn.00415d10
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], 0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004164c0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str..tdl
call fcn.00409750
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420acd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x28]
mov edx, dword [esp + 0x14]
push 1
push edi
call fcn.00444790
mov ebx, eax
test ebx, ebx
jne 0x420b5b
push eax
push 0x49a098
push 4
lea edx, [esi + 0x16c]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
call fcn.00422de0
lea ecx, [esi + 0x20]
mov dword [esi + 0x15c], 5
call fcn.0042e2b0
mov eax, dword [esi + 0x168]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x170]
push 0x49a0a0
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
push edx
call edi
mov eax, dword [esi + 4]
push eax
call edi
test eax, eax
jne 0x420b5b
mov ecx, dword [esi + 4]
push eax
push 1
push 0x13b6
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420b83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x10]
cmp dword [ebp + 0xc], 0
je 0x420bbe
push 0
push 0x49a098
push 4
lea ecx, [esi + 0x16c]
push ecx
mov ecx, 1
call fcn.00422de0
cmp dword [esi + 0x564], 0
jbe 0x420e74
mov edi, dword [esi + 0x55c]
lea eax, [esi + 0x55c]
mov dword [esp + 0x24], eax
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x420bf0
push 0x80004005
call fcn.00416be0
add edi, 8
lea eax, [edi + 0x30]
push eax
lea edx, [esp + 0x20]
push edx
mov ebx, str.tmp_
mov dword [esp + 0x20], eax
call fcn.00409750
lea ecx, [edi + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, eax
mov dword [esp + 0x88], 1
call fcn.00421880
add esp, 0x10
mov byte [esp + 0x78], 3
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 0x420c4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x24]
push edx
call fcn.00407450
add esp, 4
test eax, eax
je 0x420dff
lea esi, [esp + 0x28]
call fcn.00420ea0
mov eax, esi
mov byte [esp + 0x78], 4
mov ecx, dword [esp + 0x14]
push eax
call fcn.00430960
add esp, 4
test eax, eax
je 0x420dec
mov ecx, esi
push ecx
mov eax, edi
call fcn.004173a0
add esp, 4
test al, al
je 0x420dec
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00421880
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, str..qpyd
mov byte [esp + 0x88], 5
call fcn.00409750
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 7
call fcn.00416ba0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420cfe
mov eax, dword [esp + 0x18]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov edx, dword [esp + 0x10]
push 0
je 0x420dc9
mov edi, dword [ebp + 8]
push 0x49a16c
push 4
lea ecx, [edi + 0x16c]
push ecx
mov ecx, 1
call fcn.00422de0
mov edx, dword [edi + 0x58c]
mov esi, dword [esp + 0x2c]
mov eax, dword [edx - 0xc]
mov ecx, dword [esi - 0xc]
add edi, 0x58c
add ecx, eax
cmp ecx, 0x50
jge 0x420d7c
test eax, eax
jle 0x420d6a
lea ecx, [eax - 1]
mov eax, edi
call fcn.00416720
cmp ax, 0x2026
je 0x420da3
mov eax, dword [esi - 0xc]
push eax
push esi
push edi
call fcn.004164c0
mov edx, 0x49a174
jmp 0x420d9d
lea ebx, [eax - 1]
mov ecx, ebx
mov eax, edi
call fcn.00416720
cmp ax, 0x2026
je 0x420da3
push 0x2026
call fcn.004219a0
mov edx, 0x49a178
push edi
call fcn.004166e0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push eax
push esi
push ecx
call fcn.00431030
add esp, 0xc
test eax, eax
je 0x420de3
mov edx, dword [ebp + 8]
mov dword [edx + 0x590], 1
jmp 0x420de3
mov eax, dword [ebp + 8]
push 0x49a098
push 4
add eax, 0x16c
push eax
mov ecx, 1
call fcn.00422de0
lea ecx, [esp + 0x18]
call fcn.00416ba0
lea esi, [esp + 0x28]
mov byte [esp + 0x78], 3
call fcn.00434740
mov esi, dword [ebp + 8]
jmp 0x420e1d
mov edx, dword [esp + 0x10]
push 0
push 0x49a098
push 4
lea ecx, [esi + 0x16c]
push ecx
mov ecx, 1
call fcn.00422de0
mov ecx, dword [esp + 0x14]
call fcn.00428240
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
push edx
call fcn.00421e40
lea eax, [esp + 0x34]
call fcn.0041ffb0
mov ebx, esi
call fcn.00420760
push esi
call fcn.004200d0
mov dword [esp + 0x78], 0xffffffff
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 0x420e7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420e7b
mov ebx, esi
call fcn.00420760
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8