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

Disassembly:
push ebp
lea ebp, [esp - 0x315c]
mov eax, 0x315c
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x5084e8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp + 0x3158], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x3164]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x3168]
test eax, eax
jne 0x48ec07
xor ebx, ebx
jmp 0x48ec1f
push 0x400
lea ecx, [ebp + 0x284c]
push ecx
push eax
call fcn.00491720
lea ebx, [ebp + 0x284c]
push 0x800
lea eax, [ebp + 0x104c]
mov dword [ebp - 0x18], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x48f019
push 0x800
lea eax, [ebp + 0x104c]
push eax
push str.MAPI32.DLL
push eax
call fcn.004789f0
lea eax, [ebp + 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x48f019
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPISendMail
push esi
call edi
push str.MAPIResolveName
push esi
mov dword [ebp - 0x24], eax
call edi
push str.MAPIFreeBuffer
push esi
mov dword [ebp - 0x20], eax
call edi
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x40], eax
je 0x48f012
cmp dword [ebp - 0x20], 0
je 0x48f012
test eax, eax
je 0x48f012
test ebx, ebx
je 0x48eccd
cmp byte [ebx], 0x2e
jne 0x48eccd
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 0x48ecd1
mov byte [ebp - 0xd], 0
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x48ecfa
push str.SetDllDirectoryW
push esi
call edi
test eax, eax
je 0x48ecf2
push 0
call eax
push str.SetDefaultDllDirectories
push esi
call edi
lea eax, [ebp + 0x4c]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x800
lea eax, [ebp + 0x204c]
push eax
push dword [ebp - 0x1c]
call fcn.00491720
push 1
lea eax, [ebp + 0x204c]
push eax
call fcn.00478b20
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x3054]
push eax
push 0x104
lea eax, [ebp + 0x204c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x3054]
push 0x30
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x8c]
push 0
push eax
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x4c], esi
call fcn.004ee100
mov dword [ebp - 0x84], esi
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x88], esi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x34], esi
add esp, 0xc
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x48ef19
push 1
lea ecx, [ebp - 0x34]
call fcn.0048eb30
mov eax, dword [ebp - 0x6c]
mov edx, ebx
mov ecx, dword [ebp - 0x34]
mov esi, edx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [str.SMTP:]
mov dword [ebp + 0x2c4c], eax
mov ax, word [0x510074]
mov word [ebp + 0x2c50], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x48edf8
lea edi, [ebp + 0x2c4c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ee08
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x510078
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.004f7300
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48ee41
movsx ecx, byte [ebx + 1]
inc ebx
push ecx
call fcn.0048e2e0
test al, al
jne 0x48ee32
lea eax, [ebp + 0x2c4c]
push 0x510078
push eax
call fcn.004f7300
add esp, 8
test eax, eax
je 0x48ee5c
mov byte [eax], 0
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
push 0
push 1
lea eax, [ebp + 0x2c51]
mov dword [esi + 4], 1
push eax
push 0
push 0
call dword [ebp - 0x20]
test eax, eax
jne 0x48eef0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x48eea0
push ecx
call fcn.004f8cee
mov dword [esi + 8], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x48eeb6
push ecx
call fcn.004f8cee
mov dword [esi + 0xc], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x48eeea
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x48eeea
push ecx
call fcn.004f2e54
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x10]
push dword [ecx + 0x14]
push eax
call fcn.004edb80
mov eax, dword [ebp - 0x14]
add esp, 0x10
push eax
call dword [ebp - 0x40]
jmp 0x48ef02
lea eax, [ebp + 0x2c4c]
push eax
call fcn.004f8cee
add esp, 4
mov dword [esi + 0xc], eax
inc dword [ebp - 0x6c]
test ebx, ebx
jne 0x48edb0
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x68], esi
xor eax, eax
test ebx, ebx
push 0
sete al
lea eax, [eax*8 + 1]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0
call dword [ebp - 0x24]
test eax, eax
sete bl
test edi, edi
je 0x48ef7b
add esi, 0xc
mov eax, dword [esi - 4]
test eax, eax
je 0x48ef54
push eax
call fcn.004f252e
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x48ef63
push eax
call fcn.004f252e
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x48ef73
push eax
call fcn.004f252e
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x48ef44
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x48efc0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetDllDirectoryW
push esi
call edi
test eax, eax
je 0x48efb8
push 0x50b8c4
call eax
push str.SetDefaultDllDirectories
push esi
call edi
test bl, bl
je 0x48efd4
cmp byte [ebp - 0xd], 0
je 0x48eff7
push dword [ebp - 0x1c]
call fcn.00468f10
jmp 0x48eff7
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp]
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0x4b
mov dword [ebp], eax
mov dword [ebp + 0x40], 1
call fcn.00490250
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x48f00e
push ecx
call fcn.004f252e
add esp, 4
mov al, bl
jmp 0x48f01b
push esi
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 + 0x3158]
xor ecx, ebp
call fcn.004ebbd8
lea esp, [ebp + 0x315c]
pop ebp
ret 8