Function at 0x402cc0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446670
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x45b8b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
call fcn.0041623a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402d1a
push 0x80004005
call fcn.00403720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x68]
push ecx
push edx
lea edi, [esi + 0x7c]
push str._s_s
push edi
call fcn.00403d50
mov eax, dword [edi]
add esp, 0x10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402da2
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x11c]
push str.Change_destination_file_attributes_:___s_
push ecx
call fcn.00403d50
mov eax, dword [ebp - 0x11c]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x120], esp
mov ebx, esp
push eax
call fcn.00403f60
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esi + 0x4c]
add esp, 4
call fcn.00404170
mov bl, 2
mov byte [ebp - 4], bl
cmp dword [esi + 0x78], 0
jne 0x402e25
push 0x10
call fcn.0040cab3
mov ecx, eax
add esp, 4
mov dword [ebp - 0x120], ecx
test ecx, ecx
mov byte [ebp - 4], 3
je 0x402dd6
mov eax, dword [edi]
push 0x9001
push eax
call fcn.00417a1f
jmp 0x402dd8
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi + 0x78], eax
je 0x402ed3
mov edx, dword [edi]
push edx
lea eax, [ebp - 0x11c]
push str.Create_destination_file_succeed_:___s_
push eax
call fcn.00403d50
mov eax, dword [ebp - 0x11c]
add esp, 0xc
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x120], esp
mov edi, esp
push eax
call fcn.00403f60
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x4c]
add esp, 4
call fcn.00404170
mov ecx, dword [esi + 0x78]
call fcn.004039d0
mov ecx, edx
push ecx
push eax
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x11c]
push str.DestinationFile_start_reading_byte_:___d_
push ecx
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 1
call fcn.00403d50
mov edi, dword [ebp - 0x11c]
add esp, 0xc
add edi, 0xfffffff0
mov dword [ebp - 0x120], esp
mov ebx, esp
push edi
call fcn.00403f60
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esi + 0x4c]
add esp, 4
call fcn.00404170
mov byte [ebp - 4], 0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402e9c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ec2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
jmp 0x402fdb
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x11c]
push str._ERROR__Create_destination_file_failed:___s_
push edx
call fcn.00403d50
mov edi, dword [ebp - 0x11c]
add esp, 0xc
push ecx
add edi, 0xfffffff0
mov dword [ebp - 0x120], esp
mov ebx, esp
push edi
call fcn.00403f60
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esi + 0x4c]
add esp, 4
call fcn.00404170
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402f2f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402fd5
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042e419
mov esp, ebp
pop ebp
ret 4