Function at 0x49d3a0
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.00502fa0
push 0xffffffffffffffff
push 0x5202b8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5513d4]
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 0x49d3f4
xor ebx, ebx
jmp 0x49d40c
push 0x400
lea ecx, [ebp + 0x2800]
push ecx
push eax
call fcn.004a0240
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 0x49d806
push 0x800
lea eax, [ebp + 0x1000]
push eax
push str.MAPI32.DLL
push eax
call fcn.00484d90
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 0x49d806
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 0x49d7ff
test esi, esi
je 0x49d7ff
test eax, eax
je 0x49d7ff
test ebx, ebx
je 0x49d4c0
cmp byte [ebx], 0x2e
jne 0x49d4c0
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 0x49d4c4
mov byte [ebp - 0xd], 0
push 0
call fcn.0049da30
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.004a0240
push 1
lea eax, [ebp + 0x2000]
push eax
call fcn.00484ec0
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.00505530
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 0x49d6e9
mov esi, ebx
mov ebx, dword [ebp - 0x14]
jmp 0x49d590
push 1
lea ecx, [ebp - 0x38]
call fcn.0049d2c0
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.0049cda0
push 0x405
push esi
lea eax, [ebp + 0x2c00]
push eax
call fcn.0049cd50
push 0x5331e8
push esi
call fcn.0050e610
mov esi, eax
add esp, 8
test esi, esi
je 0x49d604
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.0049ca70
test al, al
jne 0x49d5f5
lea eax, [ebp + 0x2c00]
push 0x5331e8
push eax
call fcn.0050e610
add esp, 8
test eax, eax
je 0x49d61f
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 [0x523720]
call dword [ebp - 0x20]
test eax, eax
jne 0x49d6c0
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 0x49d669
push ecx
call fcn.00510063
mov dword [edi + 8], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x49d67f
push ecx
call fcn.00510063
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 0x49d6b3
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49d6b3
push ecx
call fcn.005097b7
mov dword [edi + 0x14], eax
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x10]
push dword [ecx + 0x14]
push eax
call fcn.00504fb0
mov eax, dword [ebp - 0x14]
add esp, 0x10
push eax
mov ecx, ebx
call dword [0x523720]
call ebx
jmp 0x49d6d2
lea eax, [ebp + 0x2c00]
push eax
call fcn.00510063
add esp, 4
mov dword [edi + 0xc], eax
inc dword [ebp - 0x68]
test esi, esi
jne 0x49d590
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 [0x523720]
call ebx
test eax, eax
je 0x49d71f
cmp eax, 1
je 0x49d71f
xor bl, bl
jmp 0x49d721
mov bl, 1
test edi, edi
je 0x49d75f
add esi, 0xc
mov eax, dword [esi - 4]
test eax, eax
je 0x49d738
push eax
call fcn.005097b2
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x49d747
push eax
call fcn.005097b2
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x49d757
push eax
call fcn.005097b2
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x49d728
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 0x49d7b0
push str.SetDllDirectoryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x49d7a4
push 0x52452c
mov ecx, edi
call dword [0x523720]
call edi
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test bl, bl
je 0x49d7c4
cmp byte [ebp - 0xd], 0
je 0x49d7ce
push dword [ebp - 0x1c]
call fcn.00473d60
jmp 0x49d7ce
push dword [ebp - 0x1c]
push 0x4e
call fcn.00451e30
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x49d7fb
cmp byte [ebp - 0x28], 0
je 0x49d7f2
mov eax, dword [ebp - 0x30]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push edi
call fcn.0049a3e0
push edi
call fcn.005097b2
add esp, 4
mov al, bl
jmp 0x49d808
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.00502f8e
lea esp, [ebp + 0x3110]
pop ebp
ret 8