Function at 0x465c00
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4af19b
mov eax, dword fs:[0]
push eax
sub esp, 0x968
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x964], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c0390]
xor eax, esp
push eax
lea eax, [esp + 0x97c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98c]
mov ebx, dword [esp + 0x990]
push str.MAPI32.DLL
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x46600f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPISendMail
push edi
call esi
push str.MAPIResolveName
mov ebp, eax
push edi
mov dword [esp + 0x48], ebp
call esi
mov ecx, dword [esp + 0x24]
push str.MAPIFreeBuffer
mov edi, eax
push ecx
mov dword [esp + 0x44], edi
call esi
xor esi, esi
mov dword [esp + 0x38], eax
cmp ebp, esi
je 0x466004
cmp edi, esi
je 0x466004
cmp eax, esi
je 0x466004
cmp ebx, esi
je 0x465ee2
cmp byte [ebx], 0x2e
jne 0x465ee2
inc ebx
cmp byte [ebx], 0
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], ebx
jne 0x465cdc
mov dword [esp + 0x1c], esi
mov ebx, esi
lea edx, [esp + 0x578]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x90]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ecx, dword [esp + 0x28]
xor eax, eax
push 0x30
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], eax
lea edx, [esp + 0x60]
lea eax, [esp + 0x90]
push esi
push edx
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
call fcn.0049e680
xor edi, edi
mov dword [esp + 0x38], esi
lea eax, [esp + 0x50]
mov dword [esp + 0x3c], edi
add esp, 0xc
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x984], edi
cmp ebx, edi
je 0x465f32
push 1
lea ecx, [esp + 0x30]
call fcn.00465ba0
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x2c]
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 [0x4b3f8c]
mov dword [esp + 0x190], eax
mov eax, ebx
mov word [esp + 0x194], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x465dd0
lea edi, [esp + 0x190]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465de3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x4b3f84
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0049ecc0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x465e1f
lea ecx, [ecx]
movsx edx, byte [ebx + 1]
inc ebx
push edx
call fcn.00464c90
test al, al
jne 0x465e10
lea eax, [esp + 0x190]
push 0x4b3f84
push eax
call fcn.0049ecc0
add esp, 8
test eax, eax
je 0x465e3b
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
push 0
mov esi, 1
push esi
lea edx, [esp + 0x1a1]
push edx
push 0
push 0
mov dword [ebp + 4], esi
call dword [esp + 0x54]
test eax, eax
jne 0x465eec
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [ebp], ecx
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
je 0x465e89
mov edx, dword [eax + 8]
push edx
call fcn.004ac4fd
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [eax + 0xc], 0
je 0x465ea2
mov eax, dword [eax + 0xc]
push eax
call fcn.004ac4fd
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 0x465edb
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x465edb
push eax
call fcn.0049e19f
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.0049e700
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
call dword [esp + 0x3c]
jmp 0x465eff
mov byte [esp + 0x17], 0
jmp 0x465cdc
lea edx, [esp + 0x190]
push edx
call fcn.004ac4fd
add esp, 4
mov dword [ebp + 0xc], eax
add dword [esp + 0x7c], esi
test ebx, ebx
jne 0x465d84
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
xor ecx, ecx
test ebx, ebx
sete cl
push 0
lea edx, [esp + 0x60]
lea ecx, [ecx*8 + 1]
push ecx
push edx
push 0
push 0
call ebp
test eax, eax
sete bl
test edi, edi
jbe 0x465f9b
add esi, 0xc
lea ebx, [ebx]
mov eax, dword [esi - 4]
test eax, eax
je 0x465f70
push eax
call fcn.0049de1d
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x465f7f
push eax
call fcn.0049de1d
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x465f8f
push eax
call fcn.0049de1d
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x465f60
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x465fce
cmp byte [esp + 0x17], 0
je 0x465fe8
mov edx, dword [esp + 0x20]
push edx
call fcn.004a147d
add esp, 4
jmp 0x465fe8
mov eax, dword [esp + 0x20]
push eax
push 0x4de
call fcn.0045b8f0
push eax
push 0
call fcn.0048cce0
add esp, 0xc
mov dword [esp + 0x984], 0xffffffff
test esi, esi
je 0x466000
push esi
call fcn.0049de1d
add esp, 4
mov al, bl
jmp 0x466011
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [esp + 0x97c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x964]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x974
ret 8