Function at 0x4bdf10
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.00530230
push 0xffffffffffffffff
push 0x552a9d
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x58cb30]
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 - 0x24], eax
mov eax, dword [ebp + 0x3168]
test eax, eax
jne 0x4bdf67
xor esi, esi
jmp 0x4bdf7f
push 0x400
lea ecx, [ebp + 0x284c]
push ecx
push eax
call fcn.004c1790
lea esi, [ebp + 0x284c]
push 0x800
lea eax, [ebp + 0x104c]
mov dword [ebp - 0x1c], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4be43b
push 0x800
lea eax, [ebp + 0x104c]
push eax
push str.MAPI32.DLL
push eax
call fcn.004a2fb0
lea eax, [ebp + 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x4be43b
push str.MAPISendMail
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIResolveName
push edi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIFreeBuffer
mov ebx, eax
push edi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], eax
je 0x4be434
test ebx, ebx
je 0x4be434
test eax, eax
je 0x4be434
test esi, esi
je 0x4be033
cmp byte [esi], 0x2e
jne 0x4be033
inc esi
mov byte [ebp - 0xe], 1
mov dword [ebp - 0x1c], esi
cmp byte [esi], 0
jne 0x4be037
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x4be037
mov byte [ebp - 0xe], 0
push 0
call fcn.004be5a0
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 - 0x24]
call fcn.004c1790
push 1
lea eax, [ebp + 0x204c]
push eax
call fcn.004a3390
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x3054]
push eax
push 0x104
lea eax, [ebp + 0x204c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0
lea eax, [ebp + 0x3054]
mov dword [ebp - 0x4c], ecx
xor ecx, ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 0x48], ecx
xor edi, edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], edi
test esi, esi
je 0x4be2ce
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, edi
jbe 0x4be17e
mov eax, edi
add edi, 0x20
shr eax, 2
add edi, eax
mov dword [ebp - 0x20], edi
cmp ebx, edi
jbe 0x4be152
mov edi, ebx
mov dword [ebp - 0x20], edi
lea eax, [edi + edi*2]
shl eax, 3
push eax
push ecx
call fcn.0053869a
mov ecx, eax
add esp, 8
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x4be178
mov ecx, 0x5d381c
call fcn.00487da0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x58]
push 0x405
push str.SMTP:
lea eax, [eax + eax*2]
lea edi, [ecx + 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 + 0x2c4c]
push eax
call fcn.004bd9d0
push 0x405
push esi
lea eax, [ebp + 0x2c4c]
push eax
call fcn.004bd980
push 0x568cb8
push esi
call fcn.0053daa0
mov esi, eax
add esp, 8
test esi, esi
je 0x4be1e5
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.004bd6c0
test al, al
jne 0x4be1d6
lea eax, [ebp + 0x2c4c]
push 0x568cb8
push eax
call fcn.0053daa0
add esp, 8
test eax, eax
je 0x4be200
mov byte [eax], 0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push 0
push 1
lea eax, [ebp + 0x2c51]
mov dword [edi + 4], 1
push eax
push 0
push 0
call dword [0x55770c]
call dword [ebp - 0x28]
test eax, eax
jne 0x4be2a4
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 0x4be24a
push ecx
call fcn.0053f9a8
mov dword [edi + 8], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4be260
push ecx
call fcn.0053f9a8
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 0x4be294
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4be294
push ecx
call fcn.005398b8
mov dword [edi + 0x14], eax
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x10]
push dword [ecx + 0x14]
push eax
call fcn.00531d40
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov edi, dword [ebp - 0x34]
mov ecx, edi
push eax
call dword [0x55770c]
call edi
jmp 0x4be2b6
lea eax, [ebp + 0x2c4c]
push eax
call fcn.0053f9a8
add esp, 4
mov dword [edi + 0xc], eax
inc dword [ebp - 0x58]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
test esi, esi
jne 0x4be134
mov esi, ecx
mov dword [ebp - 0x54], esi
jmp 0x4be2d0
xor esi, esi
mov edi, dword [ebp - 0x2c]
xor eax, eax
cmp dword [ebp - 0x1c], eax
mov ecx, edi
push 0
sete al
lea eax, [eax*8 + 1]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
call dword [0x55770c]
call edi
test eax, eax
je 0x4be304
mov byte [ebp - 0xd], 0
cmp eax, 1
jne 0x4be308
mov byte [ebp - 0xd], 1
test ebx, ebx
je 0x4be347
add esi, 0xc
nop
mov eax, dword [esi - 4]
test eax, eax
je 0x4be320
push eax
call fcn.0053867f
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x4be32f
push eax
call fcn.0053867f
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x4be33f
push eax
call fcn.0053867f
add esp, 4
add esi, 0x18
sub ebx, 1
jne 0x4be310
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4be398
push str.SetDllDirectoryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4be38c
push 0x558718
mov ecx, edi
call dword [0x55770c]
call edi
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, byte [ebp - 0xd]
test bl, bl
je 0x4be3af
cmp byte [ebp - 0xe], 0
je 0x4be419
push dword [ebp - 0x24]
call fcn.00490db0
jmp 0x4be419
xor eax, eax
mov dword [ebp + 4], 0x558718
mov dword [ebp + 0x20], eax
lea ecx, [ebp]
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x44], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], 0x558718
mov dword [ebp + 0xc], 0x558718
mov dword [ebp + 0x10], 0x558718
mov dword [ebp + 0x14], 0x558718
mov dword [ebp + 0x18], 0x558718
mov dword [ebp + 0x1c], 0x558718
mov dword [ebp + 0x48], 0x4e
mov dword [ebp], eax
mov dword [ebp + 0x40], 1
call fcn.004bf7b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4be430
push eax
call fcn.0053867f
add esp, 4
mov al, bl
jmp 0x4be43d
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 + 0x3158]
xor ecx, ebp
call fcn.00530218
lea esp, [ebp + 0x315c]
pop ebp
ret 8