Function at 0x405a80
Capabilities:
Copy file

Disassembly:
sub esp, 0x378
push ebx
push ebp
push esi
push edi
call fcn.00405ee0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x188]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.004016e0
mov edi, str.provisional_email
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404030
mov edi, 0x41f1f0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00405a00
lea ecx, [esp + 0x1c]
push 0x41fb74
push ecx
call fcn.00414363
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x405b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push eax
push edx
push str.Failed_to_fopen___s__err_i
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
add esp, 0x14
mov eax, dword [esp + 0x390]
push eax
push 0x41fb70
push esi
call fcn.00414217
mov ecx, dword [esp + 0x3a0]
push ecx
push 0x41fb70
push esi
call fcn.00414217
mov edx, dword [esp + 0x3d8]
push edx
push 0x41fb70
push esi
call fcn.00414217
mov eax, dword [esp + 0x3bc]
push eax
push 0x41fb70
push esi
call fcn.00414217
mov ecx, dword [esp + 0x3cc]
push ecx
push 0x41fb70
push esi
call fcn.00414217
mov edx, dword [esp + 0x3dc]
push edx
push 0x41fb70
push esi
call fcn.00414217
mov eax, dword [esp + 0x3ec]
add esp, 0x48
push eax
push 0x41fb70
push esi
call fcn.00414217
mov ecx, dword [esp + 0x3b4]
push ecx
push 0x41fb70
push esi
call fcn.00414217
mov edx, dword [esp + 0x3c4]
push edx
push 0x41fb70
push esi
call fcn.00414217
mov eax, dword [esp + 0x3d4]
push eax
push 0x41fb70
push esi
call fcn.00414217
mov ecx, dword [esp + 0x3e4]
push ecx
push 0x41fb70
push esi
call fcn.00414217
mov edx, dword [esp + 0x3f4]
push edx
push 0x41fb70
push esi
call fcn.00414217
mov eax, dword [esp + 0x404]
add esp, 0x48
push eax
push 0x41fb70
push esi
call fcn.00414217
push esi
call fcn.00414253
mov ecx, 7
mov esi, str.ocsprogemails_to_be_sent_
lea edi, [esp + 0x98]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x198]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x98]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405a00
lea ecx, [esp + 0x29c]
push ecx
call fcn.00403cd0
lea edx, [esp + 0x2a0]
push 0x42ad5e
push edx
push str.machine__s___singlepointname__s_
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
lea eax, [esp + 0x2b4]
push 0x42ad5e
push eax
xor ebx, ebx
call fcn.0041c250
mov ebp, dword [esp + 0x3c0]
add esp, 0x34
test eax, eax
jne 0x405e3d
push str.Same_computer
call fcn.00405a00
lea ecx, [esp + 0x8c]
push ecx
call fcn.00401630
mov edi, str.emails_to_be_sent_
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x88]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x8c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x405e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x8c]
lea eax, [esp + 0x14]
push edx
push eax
push str.Failed_to_copy___s__to___s__err__i
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
add esp, 0x18
jmp 0x405e67
lea ecx, [esp + 0x88]
lea edx, [esp + 0x10]
push ecx
push edx
push str.Copied___s__to___s_
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
add esp, 0x14
jmp 0x405e67
push str.send_out_the_packet
call fcn.00405a00
mov dx, word [0x42df64]
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebp
push edx
call fcn.00405650
add esp, 0x14
mov ebx, eax
lea eax, [esp + 0x88]
push eax
push str._8777__placed_email_package_file_in___s_
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
lea ecx, [esp + 0x298]
xor edx, edx
mov dx, word [0x42df64]
push ecx
push ebp
push edx
push ebx
push str._8777__iret___i__TIMESYNC_PORT__i__host__s__this_computer_s
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
add esp, 0x2c
cmp ebx, 0xfffffff7
pop edi
pop esi
pop ebp
pop ebx
jne 0x405ece
push str.Cannot_obtain_a_socket_connection_to_the_above_port_on_the_above_host
call fcn.00405a00
add esp, 4
add esp, 0x378
ret