Function at 0x4b0790
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.0051dcc0
push 0xffffffffffffffff
push 0x53e71d
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x572844]
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 0x4b07e7
xor esi, esi
jmp 0x4b07ff
push 0x400
lea ecx, [ebp + 0x284c]
push ecx
push eax
call fcn.004b4020
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 0x4b0ccb
push 0x800
lea eax, [ebp + 0x104c]
push eax
push str.MAPI32.DLL
push eax
call fcn.00495090
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 0x4b0ccb
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 0x4b0cc4
test ebx, ebx
je 0x4b0cc4
test eax, eax
je 0x4b0cc4
test esi, esi
je 0x4b08b3
cmp byte [esi], 0x2e
jne 0x4b08b3
inc esi
mov byte [ebp - 0xe], 1
mov dword [ebp - 0x1c], esi
cmp byte [esi], 0
jne 0x4b08b7
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x4b08b7
mov byte [ebp - 0xe], 0
push 0
call fcn.004b0e30
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.004b4020
push 1
lea eax, [ebp + 0x204c]
push eax
call fcn.00495470
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 - 0x94]
mov dword [ebp - 0x94], 0
lea eax, [ebp + 0x3054]
mov dword [ebp - 0x50], ecx
xor ecx, ecx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 0x4c], ecx
xor edi, edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x90], 0
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], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x3c], cl
mov dword [ebp - 4], edi
test esi, esi
je 0x4b0b5a
lea ebx, [ebx]
inc ebx
mov dword [ebp - 0x48], ebx
cmp ebx, edi
jbe 0x4b0a0a
mov eax, edi
add edi, 0x20
shr eax, 2
add edi, eax
mov dword [ebp - 0x20], edi
cmp ebx, edi
jbe 0x4b09de
mov edi, ebx
mov dword [ebp - 0x20], edi
lea eax, [edi + edi*2]
shl eax, 3
push eax
push ecx
call fcn.00525bbb
mov ecx, eax
add esp, 8
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x4b0a04
mov ecx, 0x5b68fc
call fcn.0047b030
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], edi
mov eax, dword [ebp - 0x5c]
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.004b0250
push 0x405
push esi
lea eax, [ebp + 0x2c4c]
push eax
call fcn.004b0200
push 0x552828
push esi
call fcn.0052aea0
mov esi, eax
add esp, 8
test esi, esi
je 0x4b0a71
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.004aff40
test al, al
jne 0x4b0a62
lea eax, [ebp + 0x2c4c]
push 0x552828
push eax
call fcn.0052aea0
add esp, 8
test eax, eax
je 0x4b0a8c
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 [0x541740]
call dword [ebp - 0x28]
test eax, eax
jne 0x4b0b30
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 0x4b0ad6
push ecx
call fcn.0052cc68
mov dword [edi + 8], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4b0aec
push ecx
call fcn.0052cc68
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 0x4b0b20
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b0b20
push ecx
call fcn.00525bb0
mov dword [edi + 0x14], eax
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x10]
push dword [ecx + 0x14]
push eax
call fcn.0051f6b0
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov edi, dword [ebp - 0x34]
mov ecx, edi
push eax
call dword [0x541740]
call edi
jmp 0x4b0b42
lea eax, [ebp + 0x2c4c]
push eax
call fcn.0052cc68
add esp, 4
mov dword [edi + 0xc], eax
inc dword [ebp - 0x5c]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
test esi, esi
jne 0x4b09c0
mov esi, ecx
mov dword [ebp - 0x58], esi
jmp 0x4b0b5c
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 - 0x7c]
push eax
push 0
push 0
call dword [0x541740]
call edi
test eax, eax
je 0x4b0b90
mov byte [ebp - 0xd], 0
cmp eax, 1
jne 0x4b0b94
mov byte [ebp - 0xd], 1
test ebx, ebx
je 0x4b0bd7
add esi, 0xc
jmp 0x4b0ba0
mov eax, dword [esi - 4]
test eax, eax
je 0x4b0bb0
push eax
call fcn.00525b95
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x4b0bbf
push eax
call fcn.00525b95
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x4b0bcf
push eax
call fcn.00525b95
add esp, 4
add esi, 0x18
sub ebx, 1
jne 0x4b0ba0
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 0x4b0c28
push str.SetDllDirectoryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4b0c1c
push 0x54266c
mov ecx, edi
call dword [0x541740]
call edi
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, byte [ebp - 0xd]
test bl, bl
je 0x4b0c3f
cmp byte [ebp - 0xe], 0
je 0x4b0ca9
push dword [ebp - 0x24]
call fcn.004831b0
jmp 0x4b0ca9
xor eax, eax
mov dword [ebp + 4], 0x54266c
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], 0x54266c
mov dword [ebp + 0xc], 0x54266c
mov dword [ebp + 0x10], 0x54266c
mov dword [ebp + 0x14], 0x54266c
mov dword [ebp + 0x18], 0x54266c
mov dword [ebp + 0x1c], 0x54266c
mov dword [ebp + 0x48], 0x4e
mov dword [ebp], eax
mov dword [ebp + 0x40], 1
call fcn.004b2040
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b0cc0
push eax
call fcn.00525b95
add esp, 4
mov al, bl
jmp 0x4b0ccd
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.0051dca8
lea esp, [ebp + 0x315c]
pop ebp
ret 8