Function at 0x4bd4c0
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.0052f720
push 0xffffffffffffffff
push 0x551d0d
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x58bb30]
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 0x4bd517
xor esi, esi
jmp 0x4bd52f
push 0x400
lea ecx, [ebp + 0x284c]
push ecx
push eax
call fcn.004c0d50
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 0x4bd9eb
push 0x800
lea eax, [ebp + 0x104c]
push eax
push str.MAPI32.DLL
push eax
call fcn.004a25d0
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 0x4bd9eb
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 0x4bd9e4
test ebx, ebx
je 0x4bd9e4
test eax, eax
je 0x4bd9e4
test esi, esi
je 0x4bd5e3
cmp byte [esi], 0x2e
jne 0x4bd5e3
inc esi
mov byte [ebp - 0xe], 1
mov dword [ebp - 0x1c], esi
cmp byte [esi], 0
jne 0x4bd5e7
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x4bd5e7
mov byte [ebp - 0xe], 0
push 0
call fcn.004bdb50
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.004c0d50
push 1
lea eax, [ebp + 0x204c]
push eax
call fcn.004a29b0
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 0x4bd87e
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, edi
jbe 0x4bd72e
mov eax, edi
add edi, 0x20
shr eax, 2
add edi, eax
mov dword [ebp - 0x20], edi
cmp ebx, edi
jbe 0x4bd702
mov edi, ebx
mov dword [ebp - 0x20], edi
lea eax, [edi + edi*2]
shl eax, 3
push eax
push ecx
call fcn.00537b8a
mov ecx, eax
add esp, 8
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x4bd728
mov ecx, 0x5d281c
call fcn.004875a0
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.004bcf80
push 0x405
push esi
lea eax, [ebp + 0x2c4c]
push eax
call fcn.004bcf30
push 0x567ab8
push esi
call fcn.0053cf90
mov esi, eax
add esp, 8
test esi, esi
je 0x4bd795
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.004bcc70
test al, al
jne 0x4bd786
lea eax, [ebp + 0x2c4c]
push 0x567ab8
push eax
call fcn.0053cf90
add esp, 8
test eax, eax
je 0x4bd7b0
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 [0x55670c]
call dword [ebp - 0x28]
test eax, eax
jne 0x4bd854
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 0x4bd7fa
push ecx
call fcn.0053ee98
mov dword [edi + 8], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4bd810
push ecx
call fcn.0053ee98
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 0x4bd844
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4bd844
push ecx
call fcn.00538da8
mov dword [edi + 0x14], eax
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x10]
push dword [ecx + 0x14]
push eax
call fcn.00531230
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov edi, dword [ebp - 0x34]
mov ecx, edi
push eax
call dword [0x55670c]
call edi
jmp 0x4bd866
lea eax, [ebp + 0x2c4c]
push eax
call fcn.0053ee98
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 0x4bd6e4
mov esi, ecx
mov dword [ebp - 0x54], esi
jmp 0x4bd880
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 [0x55670c]
call edi
test eax, eax
je 0x4bd8b4
mov byte [ebp - 0xd], 0
cmp eax, 1
jne 0x4bd8b8
mov byte [ebp - 0xd], 1
test ebx, ebx
je 0x4bd8f7
add esi, 0xc
nop
mov eax, dword [esi - 4]
test eax, eax
je 0x4bd8d0
push eax
call fcn.00537b6f
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x4bd8df
push eax
call fcn.00537b6f
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x4bd8ef
push eax
call fcn.00537b6f
add esp, 4
add esi, 0x18
sub ebx, 1
jne 0x4bd8c0
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 0x4bd948
push str.SetDllDirectoryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4bd93c
push 0x557718
mov ecx, edi
call dword [0x55670c]
call edi
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, byte [ebp - 0xd]
test bl, bl
je 0x4bd95f
cmp byte [ebp - 0xe], 0
je 0x4bd9c9
push dword [ebp - 0x24]
call fcn.004906b0
jmp 0x4bd9c9
xor eax, eax
mov dword [ebp + 4], 0x557718
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], 0x557718
mov dword [ebp + 0xc], 0x557718
mov dword [ebp + 0x10], 0x557718
mov dword [ebp + 0x14], 0x557718
mov dword [ebp + 0x18], 0x557718
mov dword [ebp + 0x1c], 0x557718
mov dword [ebp + 0x48], 0x4e
mov dword [ebp], eax
mov dword [ebp + 0x40], 1
call fcn.004bed70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bd9e0
push eax
call fcn.00537b6f
add esp, 4
mov al, bl
jmp 0x4bd9ed
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.0052f708
lea esp, [ebp + 0x315c]
pop ebp
ret 8