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

Disassembly:
push ebp
lea ebp, [esp - 0x3110]
mov eax, 0x3110
call fcn.00507730
push 0xffffffffffffffff
push 0x53c7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp + 0x310c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x3118]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x311c]
test eax, eax
jne 0x49e104
xor ebx, ebx
jmp 0x49e11c
push 0x400
lea ecx, [ebp + 0x2800]
push ecx
push eax
call fcn.004a0f90
lea ebx, [ebp + 0x2800]
push 0x800
lea eax, [ebp + 0x1000]
mov dword [ebp - 0x18], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x49e516
push 0x800
lea eax, [ebp + 0x1000]
push eax
push str.MAPI32.DLL
push eax
call fcn.00485ce0
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
je 0x49e516
push str.MAPISendMail
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIResolveName
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIFreeBuffer
mov esi, eax
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
je 0x49e50f
test esi, esi
je 0x49e50f
test eax, eax
je 0x49e50f
test ebx, ebx
je 0x49e1d0
cmp byte [ebx], 0x2e
jne 0x49e1d0
movsx eax, byte [ebx + 1]
inc ebx
neg eax
mov byte [ebp - 0xd], 1
sbb eax, eax
and ebx, eax
mov dword [ebp - 0x18], ebx
jmp 0x49e1d4
mov byte [ebp - 0xd], 0
push 0
call fcn.0049e740
lea eax, [ebp]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x800
lea eax, [ebp + 0x2000]
push eax
push dword [ebp - 0x1c]
call fcn.004a0f90
push 1
lea eax, [ebp + 0x2000]
push eax
call fcn.00485e40
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x3008]
push eax
push 0x104
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x3008]
push 0x30
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x88]
push 0
push eax
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x48], esi
call fcn.00520500
mov dword [ebp - 0x80], esi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x84], esi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x38], esi
add esp, 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], edi
test ebx, ebx
je 0x49e3f9
mov esi, ebx
mov ebx, dword [ebp - 0x14]
jmp 0x49e2a0
push 1
lea ecx, [ebp - 0x38]
call fcn.0048fca0
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x38]
push 0x405
push str.SMTP:
lea eax, [eax + eax*2]
lea edi, [edi + eax*8]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp + 0x2c00]
push eax
call fcn.0049db30
push 0x405
push esi
lea eax, [ebp + 0x2c00]
push eax
call fcn.0049dae0
push 0x550ca8
push esi
call fcn.00529900
mov esi, eax
add esp, 8
test esi, esi
je 0x49e314
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.0049d800
test al, al
jne 0x49e305
lea eax, [ebp + 0x2c00]
push 0x550ca8
push eax
call fcn.00529900
add esp, 8
test eax, eax
je 0x49e32f
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
push 1
lea eax, [ebp + 0x2c05]
mov dword [edi + 4], 1
push eax
push 0
push 0
call dword [0x540780]
call dword [ebp - 0x20]
test eax, eax
jne 0x49e3d0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49e379
push ecx
call fcn.0052b453
mov dword [edi + 8], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x49e38f
push ecx
call fcn.0052b453
mov dword [edi + 0xc], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x49e3c3
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49e3c3
push ecx
call fcn.00524aa7
mov dword [edi + 0x14], eax
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x10]
push dword [ecx + 0x14]
push eax
call fcn.0051ff80
mov eax, dword [ebp - 0x14]
add esp, 0x10
push eax
mov ecx, ebx
call dword [0x540780]
call ebx
jmp 0x49e3e2
lea eax, [ebp + 0x2c00]
push eax
call fcn.0052b453
add esp, 4
mov dword [edi + 0xc], eax
inc dword [ebp - 0x68]
test esi, esi
jne 0x49e2a0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x64], esi
xor eax, eax
test ebx, ebx
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
sete al
push 0
lea eax, [eax*8 + 1]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
call dword [0x540780]
call ebx
test eax, eax
je 0x49e42f
cmp eax, 1
je 0x49e42f
xor bl, bl
jmp 0x49e431
mov bl, 1
test edi, edi
je 0x49e46f
add esi, 0xc
mov eax, dword [esi - 4]
test eax, eax
je 0x49e448
push eax
call fcn.00524aa2
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x49e457
push eax
call fcn.00524aa2
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x49e467
push eax
call fcn.00524aa2
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x49e438
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x49e4c0
push str.SetDllDirectoryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x49e4b4
push 0x541b9c
mov ecx, edi
call dword [0x540780]
call edi
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test bl, bl
je 0x49e4d4
cmp byte [ebp - 0xd], 0
je 0x49e4de
push dword [ebp - 0x1c]
call fcn.00474cc0
jmp 0x49e4de
push dword [ebp - 0x1c]
push 0x4e
call fcn.00415840
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x49e50b
cmp byte [ebp - 0x28], 0
je 0x49e502
mov eax, dword [ebp - 0x30]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push edi
call fcn.0049b220
push edi
call fcn.00524aa2
add esp, 4
mov al, bl
jmp 0x49e518
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310c]
xor ecx, ebp
call fcn.00507712
lea esp, [ebp + 0x3110]
pop ebp
ret 8