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

Disassembly:
push 0xffffffffffffffff
push 0x4fdbcb
mov eax, dword fs:[0]
push eax
mov eax, 0x21d8
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x21d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0x21ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x21fc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2200]
test eax, eax
jne 0x46a00d
xor ebx, ebx
mov dword [esp + 0x1c], ebx
jmp 0x46a02d
push 0x400
lea ecx, [esp + 0xdec]
push ecx
push eax
call fcn.0046c6c0
lea edx, [esp + 0xde8]
mov dword [esp + 0x1c], edx
mov ebx, edx
push str.MAPI32.DLL
call fcn.00469da0
mov ebp, eax
mov dword [esp + 0x38], ebp
test ebp, ebp
je 0x46a4c0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPISendMail
push ebp
call edi
push str.MAPIResolveName
push ebp
mov dword [esp + 0x2c], eax
call edi
push str.MAPIFreeBuffer
mov esi, eax
push ebp
mov dword [esp + 0x44], esi
call edi
cmp dword [esp + 0x24], 0
mov dword [esp + 0x40], eax
je 0x46a4b9
test esi, esi
je 0x46a4b9
test eax, eax
je 0x46a4b9
test ebx, ebx
je 0x46a342
cmp byte [ebx], 0x2e
jne 0x46a342
inc ebx
cmp byte [ebx], 0
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], ebx
jne 0x46a0b8
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x1c]
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x46a0fb
push str.SetDllDirectoryW
push esi
call edi
cmp eax, ebp
je 0x46a0da
push ebp
call eax
push str.SetDefaultDllDirectories
push esi
call edi
mov esi, eax
call fcn.00447ef0
cmp eax, 0x601
jb 0x46a0fb
cmp esi, ebp
je 0x46a0fb
push 0x1000
call esi
lea eax, [esp + 0x11e8]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [esp + 0x20]
push 0x800
lea ecx, [esp + 0x5ec]
push ecx
push edx
call fcn.0046c6c0
push 1
lea eax, [esp + 0x5ec]
push eax
call fcn.00453c00
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0xe0]
push edx
push 0x104
lea eax, [esp + 0x5f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [esp + 0x44]
xor eax, eax
push 0x30
lea edx, [esp + 0x64]
lea ecx, [esp + 0xe0]
push ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], esi
call fcn.004e7df0
lea eax, [esp + 0x54]
mov dword [esp + 0x98], eax
xor eax, eax
mov dword [esp + 0x38], ebp
add esp, 0xc
mov dword [esp + 0x88], 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x21f4], eax
cmp ebx, eax
je 0x46a387
push 1
lea ecx, [esp + 0x2c]
call fcn.00469ea0
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x28]
lea ecx, [eax + eax*2]
lea ebp, [edx + ecx*8]
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov eax, dword [str.SMTP:]
mov cx, word [0x503654]
mov dword [esp + 0x1e0], eax
mov eax, ebx
mov word [esp + 0x1e4], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46a227
lea edi, [esp + 0x1e0]
sub eax, ecx
mov esi, ecx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46a240
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x50364c
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.004eabd0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46a27f
lea ebx, [ebx]
movsx edx, byte [ebx + 1]
inc ebx
push edx
call fcn.00469170
test al, al
jne 0x46a270
lea eax, [esp + 0x1e0]
push 0x50364c
push eax
call fcn.004eabd0
add esp, 8
test eax, eax
je 0x46a29b
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
push 0
mov esi, 1
push esi
lea edx, [esp + 0x1f1]
push edx
push 0
push 0
mov dword [ebp + 4], esi
call dword [esp + 0x54]
test eax, eax
jne 0x46a34c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [ebp], ecx
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
je 0x46a2e9
mov edx, dword [eax + 8]
push edx
call fcn.004f7a9f
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [eax + 0xc], 0
je 0x46a302
mov eax, dword [eax + 0xc]
push eax
call fcn.004f7a9f
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [eax + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x14], 0
je 0x46a33b
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x46a33b
push eax
call fcn.004e7f56
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
push edx
push ecx
push eax
call fcn.004e7a80
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
call dword [esp + 0x44]
jmp 0x46a35f
mov byte [esp + 0x17], 0
jmp 0x46a0b8
lea edx, [esp + 0x1e0]
push edx
call fcn.004f7a9f
add esp, 4
mov dword [ebp + 0xc], eax
add dword [esp + 0x80], esi
test ebx, ebx
jne 0x46a1d8
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x84], eax
xor ecx, ecx
test ebx, ebx
sete cl
push 0
lea edx, [esp + 0x64]
lea ecx, [ecx*8 + 1]
push ecx
push edx
push 0
push 0
call dword [esp + 0x38]
test eax, eax
sete bl
test ebp, ebp
jbe 0x46a3ec
mov esi, dword [esp + 0x28]
add esi, 0xc
mov eax, dword [esi - 4]
test eax, eax
je 0x46a3c5
push eax
call fcn.004e7061
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x46a3d4
push eax
call fcn.004e7061
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x46a3e4
push eax
call fcn.004e7061
add esp, 4
add esi, 0x18
sub ebp, 1
jne 0x46a3b5
lea eax, [esp + 0x11e8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x46a44a
push str.SetDllDirectoryW
push esi
call edi
test eax, eax
je 0x46a429
push 0x501a20
call eax
push str.SetDefaultDllDirectories
push esi
call edi
mov esi, eax
call fcn.00447ef0
cmp eax, 0x601
jb 0x46a44a
test esi, esi
je 0x46a44a
push 0x800
call esi
test bl, bl
je 0x46a461
cmp byte [esp + 0x17], 0
je 0x46a499
mov edx, dword [esp + 0x20]
push edx
call fcn.004450c0
jmp 0x46a499
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x90]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0x4b
mov dword [esp + 0x90], eax
mov dword [esp + 0xd0], 1
call fcn.0046b580
mov dword [esp + 0x21f4], 0xffffffff
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46a4b5
push eax
call fcn.004e7061
add esp, 4
mov al, bl
jmp 0x46a4c2
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [esp + 0x21ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21d4]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x21e4
ret 8