Function at 0x470290
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4c344b
mov eax, dword fs:[0]
push eax
sub esp, 0x968
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x964], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d8620]
xor eax, esp
push eax
lea eax, [esp + 0x97c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98c]
mov ebx, dword [esp + 0x990]
push str.MAPI32.DLL
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [esp + 0x38], edi
test edi, edi
je 0x4706e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPISendMail
push edi
call esi
push str.MAPIResolveName
mov ebp, eax
push edi
mov dword [esp + 0x38], ebp
call esi
push str.MAPIFreeBuffer
mov esi, eax
push edi
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x3c], eax
test ebp, ebp
je 0x4706e0
test esi, esi
je 0x4706e0
test eax, eax
je 0x4706e0
test ebx, ebx
je 0x4705a3
cmp byte [ebx], 0x2e
jne 0x4705a3
inc ebx
cmp byte [ebx], 0
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], ebx
jne 0x470370
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x1c]
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x470393
push str.SetDllDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x470393
push 0
call eax
lea ecx, [esp + 0x578]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x90]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [esp + 0x34]
xor eax, eax
push 0x30
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
push eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x64]
lea edx, [esp + 0x94]
push eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], esi
call fcn.004af620
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], esi
xor esi, esi
mov dword [esp + 0x30], esi
xor edi, edi
lea ecx, [esp + 0x50]
xor eax, eax
mov dword [esp + 0x34], edi
add esp, 0xc
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x984], eax
cmp ebx, eax
je 0x4705e5
push 1
lea ecx, [esp + 0x28]
call fcn.00470230
mov eax, dword [esp + 0x7c]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x24]
lea ebp, [eax + edx*8]
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov ecx, dword [str.SMTP:]
mov dx, word [0x4ca2e8]
mov eax, ebx
mov dword [esp + 0x190], ecx
mov word [esp + 0x194], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x470494
lea edi, [esp + 0x190]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4704a7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x4ca2e0
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.004afc80
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4704e0
movsx eax, byte [ebx + 1]
inc ebx
push eax
call fcn.0046f050
test al, al
jne 0x4704d1
lea ecx, [esp + 0x190]
push 0x4ca2e0
push ecx
call fcn.004afc80
add esp, 8
test eax, eax
je 0x4704fc
mov byte [eax], 0
lea edx, [esp + 0x18]
push edx
push 0
mov esi, 1
push esi
lea eax, [esp + 0x1a1]
push eax
push 0
push 0
mov dword [ebp + 4], esi
call dword [esp + 0x58]
test eax, eax
jne 0x4705ad
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [ebp], edx
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
je 0x47054a
mov eax, dword [eax + 8]
push eax
call fcn.004c0547
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [eax + 0xc], 0
je 0x470563
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004c0547
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov edx, dword [eax + 0x10]
mov dword [ebp + 0x10], edx
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x14], 0
je 0x47059c
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x47059c
push eax
call fcn.004aee96
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
push edx
push ecx
push eax
call fcn.004af6a0
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
call dword [esp + 0x40]
jmp 0x4705c0
mov byte [esp + 0x17], 0
jmp 0x470370
lea edx, [esp + 0x190]
push edx
call fcn.004c0547
add esp, 4
mov dword [ebp + 0xc], eax
add dword [esp + 0x7c], esi
test ebx, ebx
jne 0x470447
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov esi, eax
xor ecx, ecx
test ebx, ebx
sete cl
push 0
lea edx, [esp + 0x60]
lea ecx, [ecx*8 + 1]
push ecx
push edx
push 0
push 0
call ebp
test eax, eax
sete bl
test edi, edi
jbe 0x47064b
add esi, 0xc
lea ecx, [ecx]
mov eax, dword [esi - 4]
test eax, eax
je 0x470620
push eax
call fcn.004aef60
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x47062f
push eax
call fcn.004aef60
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x47063f
push eax
call fcn.004aef60
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x470610
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47068a
push str.SetDllDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47068a
push 0x4c5d70
call eax
test bl, bl
je 0x4706a4
cmp byte [esp + 0x17], 0
je 0x4706c4
mov edx, dword [esp + 0x20]
push edx
call fcn.004b2fd5
add esp, 4
jmp 0x4706c4
mov eax, dword [esp + 0x20]
push eax
call fcn.0046f470
push eax
push 0x4de
call fcn.00465ec0
push eax
push 0
call fcn.00498be0
add esp, 0xc
mov dword [esp + 0x984], 0xffffffff
test esi, esi
je 0x4706dc
push esi
call fcn.004aef60
add esp, 4
mov al, bl
jmp 0x4706e9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [esp + 0x97c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x964]
xor ecx, esp
call fcn.004aedbb
add esp, 0x974
ret 8