Function at 0x405680
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545771
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1005c
call fcn.0052de70
mov eax, dword [0x5ad6a8]
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
lea ecx, [ebp - 0x10038]
mov dword [ebp - 4], 3
call fcn.0040b927
lea ecx, [ebp - 0x10068]
mov byte [ebp - 4], 4
call fcn.0040b927
lea ecx, [ebp - 0x10054]
mov byte [ebp - 4], 5
call fcn.0040b927
lea eax, [ebp - 0x10040]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0x1003c], ebx
mov dword [ebp - 0x10024], ebx
mov dword [ebp - 0x10040], ebx
call fcn.00403f80
mov esi, eax
add esp, 8
test esi, esi
jns 0x4057e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._BindFileToExeFile__comGetFileSize_nRet___d__dwErr___08x_
call fcn.00408960
add esp, 0xc
lea ecx, [ebp - 0x10054]
mov byte [ebp - 4], 5
call fcn.0040b99d
lea ecx, [ebp - 0x10068]
mov byte [ebp - 4], 4
call fcn.0040b99d
lea ecx, [ebp - 0x10038]
mov byte [ebp - 4], 3
call fcn.0040b99d
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40577f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40579f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], bl
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4057be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4057e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x405d25
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4058cf
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._BindFileToExeFile__CopyFile_ERROR__dwErr___08x___s_
call fcn.00408960
add esp, 0xc
lea ecx, [ebp - 0x10054]
mov byte [ebp - 4], 5
call fcn.0040b99d
lea ecx, [ebp - 0x10068]
mov byte [ebp - 4], 4
call fcn.0040b99d
lea ecx, [ebp - 0x10038]
mov byte [ebp - 4], 3
call fcn.0040b99d
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405865
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405885
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], bl
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4058a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4058c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0xfffffff5
jmp 0x405d25
push 0
push 0xa001
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10038]
call fcn.0040be47
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4059f3
call edi
xor esi, esi
cmp eax, 0x20
jne 0x405928
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0xa001
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10038]
call fcn.0040be47
test eax, eax
jne 0x4059f3
call edi
inc esi
cmp esi, 0x1e
jl 0x4058f6
push dword [ebp + 0x10]
push eax
push str._BindFileToExeFile__ExeFile.Open_ERROR__dwErr___08x___s_
call fcn.00408960
add esp, 0xc
lea ecx, [ebp - 0x10054]
mov byte [ebp - 4], 5
call fcn.0040b99d
lea ecx, [ebp - 0x10068]
mov byte [ebp - 4], 4
call fcn.0040b99d
lea ecx, [ebp - 0x10038]
mov byte [ebp - 4], 3
call fcn.0040b99d
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405989
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4059a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], bl
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4059c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4059e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0xfffffffe
jmp 0x405d25
push 0
push 0x8000
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10068]
call fcn.0040be47
test eax, eax
jne 0x405ae8
lea ecx, [ebp - 0x10038]
call fcn.0040bc05
push dword [ebp + 0xc]
call edi
push eax
push str._BindFileToExeFile__BindFile.Open_ERROR__dwErr___08x___s_
call fcn.00408960
add esp, 0xc
lea ecx, [ebp - 0x10054]
mov byte [ebp - 4], 5
call fcn.0040b99d
lea ecx, [ebp - 0x10068]
mov byte [ebp - 4], 4
call fcn.0040b99d
lea ecx, [ebp - 0x10038]
mov byte [ebp - 4], 3
call fcn.0040b99d
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lea ecx, [edx + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405a7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405a9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
mov byte [ebp - 4], bl
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405abd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x405ade
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0xfffffffd
jmp 0x405d25
mov eax, dword [ebp + 0x18]
cmp dword [eax - 0xc], ebx
je 0x405b48
push 0
push 0x8040
push eax
lea ecx, [ebp - 0x10054]
call fcn.0040be47
test eax, eax
jne 0x405b35
push dword [ebp + 0x18]
call edi
push eax
push str._BindFileToExeFile__ZipDllFile.Open_ERROR__dwErr___08x___s_
call fcn.00408960
add esp, 0xc
lea ecx, [ebp - 0x10038]
call fcn.0040bc05
lea ecx, [ebp - 0x10068]
call fcn.0040bc05
jmp 0x405a2e
lea ecx, [ebp - 0x10054]
call fcn.0040bd6a
mov ebx, eax
mov dword [ebp - 0x1003c], eax
mov ecx, dword [ebp - 0x10040]
mov dword [ebp - 0x10020], ecx
mov ecx, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 0x1001c], ecx
push 0x30
lea ecx, [ebp - 0x10038]
mov byte [ebp - 4], 7
mov dword [ebp - 0x10018], ebx
call fcn.0040c05b
push 0xc
lea eax, [ebp - 0x10020]
push eax
lea ecx, [ebp - 0x10038]
call fcn.0040c1a8
push 2
push 0
push 0
lea ecx, [ebp - 0x10038]
call fcn.0040c05b
test ebx, ebx
je 0x405bd1
push 0x10000
lea eax, [ebp - 0x10014]
push eax
lea ecx, [ebp - 0x10054]
call fcn.0040c01a
test eax, eax
je 0x405bd1
push eax
lea eax, [ebp - 0x10014]
push eax
lea ecx, [ebp - 0x10038]
call fcn.0040c1a8
jmp 0x405ba1
push 0x10000
lea eax, [ebp - 0x10014]
push eax
lea ecx, [ebp - 0x10068]
call fcn.0040c01a
test eax, eax
je 0x405c42
push eax
lea eax, [ebp - 0x10014]
push eax
lea ecx, [ebp - 0x10038]
call fcn.0040c1a8
jmp 0x405bd1
mov dword [ebp - 4], 6
test ebx, ebx
je 0x405c58
lea ecx, [ebp - 0x10054]
call fcn.0040bc05
lea ecx, [ebp - 0x10068]
call fcn.0040bc05
lea ecx, [ebp - 0x10038]
call fcn.0040bc05
lea ecx, [ebp - 0x10054]
mov byte [ebp - 4], 5
call fcn.0040b99d
lea ecx, [ebp - 0x10068]
mov byte [ebp - 4], 4
call fcn.0040b99d
lea ecx, [ebp - 0x10038]
mov byte [ebp - 4], 3
call fcn.0040b99d
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405cbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405cde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405cfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x405d1f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10024]
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.0052ba1e
mov esp, ebp
pop ebp
ret 0x14