Function at 0x40c2c0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a168
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5ba278]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412dc0
add esp, 4
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
call fcn.00421770
mov ecx, eax
call fcn.00421740
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x44]
sub eax, 0x10
push eax
call fcn.0040c1d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x1c]
or edi, 0xffffffff
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
jne 0x40c33e
xor ebx, ebx
jmp 0x40c48a
lea ecx, [ebp - 0xd]
call fcn.00406ee0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406ba0
add esp, 0xc
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 3
call fcn.00406c70
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406ba0
add esp, 0xc
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 4
call ebx
test eax, eax
je 0x40c44c
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x14]
call ebx
push 0x56e6d0
test eax, eax
jne 0x40c4fe
lea ecx, [ebp - 0x28]
call fcn.00405050
push 0x56e6d0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00405050
push str.7z_copy_fail
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00405050
mov byte [ebp - 4], 7
call fcn.00456a60
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
push ecx
push 1
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call dword [edx]
mov edx, dword [ebp - 0x20]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c410
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, edi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c42e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c44c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov edx, dword [ebp - 0x14]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c46c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c48a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c4a5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40c4cb
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c4cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c4cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40c4ea
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.00405050
push 0x56e6d0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00405050
push str.7z_copy_success
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00405050
mov byte [ebp - 4], 0xa
call fcn.00456a60
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
push ecx
push 1
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call dword [edx]
mov edx, dword [ebp - 0x28]
mov eax, edi
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c563
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, edi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c581
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c59f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 1
jmp 0x40c44e