Function at 0x456e10
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.00466a00
push 0xffffffffffffffff
push 0x47c1cd
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x48d1f4]
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 - 0x20], eax
mov eax, dword [ebp + 0x3168]
test eax, eax
jne 0x456e67
xor esi, esi
jmp 0x456e7f
push 0x400
lea ecx, [ebp + 0x284c]
push ecx
push eax
call fcn.0045a050
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 0x457331
push 0x800
lea eax, [ebp + 0x104c]
push eax
push str.MAPI32.DLL
push eax
call fcn.0043c380
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 0x457331
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 - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], eax
je 0x45732a
test ebx, ebx
je 0x45732a
test eax, eax
je 0x45732a
test esi, esi
je 0x456f33
cmp byte [esi], 0x2e
jne 0x456f33
inc esi
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x1c], esi
cmp byte [esi], 0
jne 0x456f37
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x456f37
mov byte [ebp - 0xd], 0
push 0
call fcn.00457490
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 - 0x20]
call fcn.0045a050
push 1
lea eax, [ebp + 0x204c]
push eax
call fcn.0043c760
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 edx, [ebp - 0x94]
mov dword [ebp - 0x94], 0
lea eax, [ebp + 0x3054]
mov dword [ebp - 0x50], edx
xor ecx, ecx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x30]
xor edx, edx
xor edi, edi
mov dword [ebp - 0x90], 0
xor ebx, ebx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], 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], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x3c], cl
mov dword [ebp - 4], ebx
test esi, esi
je 0x4571d0
inc edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x48], edi
cmp edi, ebx
jbe 0x45707b
mov eax, ebx
add ebx, 0x20
shr eax, 2
add ebx, eax
cmp edi, ebx
jbe 0x45704c
mov ebx, edi
lea eax, [ebx + ebx*2]
shl eax, 3
push eax
push edx
call fcn.0046a903
mov edx, eax
add esp, 8
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x457072
mov ecx, 0x49d17c
call fcn.004213d0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], ebx
lea eax, [ecx + ecx*2]
lea edi, [edx + 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
push 0x405
mov dword [edi + 0x14], eax
lea eax, [ebp + 0x2c4c]
push str.SMTP:
push eax
call fcn.004569a0
push 0x405
push esi
lea eax, [ebp + 0x2c4c]
push eax
call fcn.00456950
push 0x4804c4
push esi
call fcn.0046ea00
mov esi, eax
add esp, 8
test esi, esi
je 0x4570df
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00456670
test al, al
jne 0x4570d0
lea eax, [ebp + 0x2c4c]
push 0x4804c4
push eax
call fcn.0046ea00
add esp, 8
test eax, eax
je 0x4570fa
mov byte [eax], 0
mov ecx, dword [ebp - 0x24]
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 [0x47d2b8]
call dword [ebp - 0x24]
test eax, eax
jne 0x4571a2
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 0x457148
push ecx
call fcn.0046faef
mov dword [edi + 8], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x45715e
push ecx
call fcn.0046faef
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 0x457192
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x457192
push ecx
call fcn.0046a8f8
mov dword [edi + 0x14], eax
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x10]
push dword [ecx + 0x14]
push eax
call fcn.00468820
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov edi, dword [ebp - 0x34]
mov ecx, edi
push eax
call dword [0x47d2b8]
call edi
jmp 0x4571b4
lea eax, [ebp + 0x2c4c]
push eax
call fcn.0046faef
add esp, 4
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x28]
inc ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x5c], ecx
test esi, esi
jne 0x457031
mov esi, edx
mov dword [ebp - 0x58], esi
jmp 0x4571d2
xor esi, esi
mov ebx, dword [ebp - 0x2c]
xor eax, eax
cmp dword [ebp - 0x1c], eax
mov ecx, ebx
push 0
sete al
lea eax, [eax*8 + 1]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
call dword [0x47d2b8]
call ebx
test eax, eax
je 0x457206
cmp eax, 1
je 0x457206
xor bl, bl
jmp 0x457208
mov bl, 1
test edi, edi
je 0x457247
add esi, 0xc
nop
mov eax, dword [esi - 4]
test eax, eax
je 0x457220
push eax
call fcn.0046a8f3
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x45722f
push eax
call fcn.0046a8f3
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x45723f
push eax
call fcn.0046a8f3
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x457210
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 0x480504
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x457298
push str.SetDllDirectoryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x45728c
push 0x47d694
mov ecx, edi
call dword [0x47d2b8]
call edi
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test bl, bl
je 0x4572ac
cmp byte [ebp - 0xd], 0
je 0x457316
push dword [ebp - 0x20]
call fcn.004295d0
jmp 0x457316
xor eax, eax
mov dword [ebp + 4], 0x47d694
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 - 0x20]
mov dword [ebp + 8], 0x47d694
mov dword [ebp + 0xc], 0x47d694
mov dword [ebp + 0x10], 0x47d694
mov dword [ebp + 0x14], 0x47d694
mov dword [ebp + 0x18], 0x47d694
mov dword [ebp + 0x1c], 0x47d694
mov dword [ebp + 0x48], 0x4e
mov dword [ebp], eax
mov dword [ebp + 0x40], 1
call fcn.00458680
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x457326
push eax
call fcn.0046a8f3
add esp, 4
mov al, bl
jmp 0x457333
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.004669f1
lea esp, [ebp + 0x315c]
pop ebp
ret 8