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

Disassembly:
push 0xffffffffffffffff
push 0x44af5b
mov eax, dword fs:[0]
push eax
sub esp, 0x968
mov eax, dword [0x4537c0]
xor eax, esp
mov dword [esp + 0x964], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4537c0]
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 + 0x28], eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x436034
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 + 0x40], ebp
call esi
mov ecx, dword [esp + 0x20]
push str.MAPIFreeBuffer
mov edi, eax
push ecx
mov dword [esp + 0x48], edi
call esi
mov dword [esp + 0x34], eax
test ebp, ebp
je 0x436029
test edi, edi
je 0x436029
test eax, eax
je 0x436029
test ebx, ebx
je 0x435f22
cmp byte [ebx], 0x2e
jne 0x435f22
inc ebx
cmp byte [ebx], 0
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], ebx
jne 0x435d10
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x578]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x90]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [esp + 0x3c]
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 ecx, [esp + 0x60]
lea eax, [esp + 0x90]
push 0
push ecx
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], esi
call fcn.0043ea70
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], esi
lea edx, [esp + 0x50]
xor esi, esi
xor edi, edi
xor eax, eax
add esp, 0xc
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x984], eax
cmp ebx, eax
je 0x435f64
push 1
lea ecx, [esp + 0x2c]
call fcn.00435bd0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x28]
lea eax, [eax + eax*2]
lea ebp, [ecx + eax*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 ax, word [0x44cc5c]
mov edx, dword [str.SMTP:]
mov word [esp + 0x194], ax
mov eax, ebx
mov dword [esp + 0x190], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x435e11
lea edi, [esp + 0x190]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x435e24
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x44cc54
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0043f160
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x435e5f
mov edi, edi
movsx ecx, byte [ebx + 1]
inc ebx
push ecx
call fcn.00435230
test al, al
jne 0x435e50
lea edx, [esp + 0x190]
push 0x44cc54
push edx
call fcn.0043f160
add esp, 8
test eax, eax
je 0x435e7b
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
push 0
mov esi, 1
push esi
lea ecx, [esp + 0x1a1]
push ecx
push 0
push 0
mov dword [ebp + 4], esi
call dword [esp + 0x58]
test eax, eax
jne 0x435f2c
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
je 0x435ec9
mov ecx, dword [eax + 8]
push ecx
call fcn.004490a3
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [eax + 0xc], 0
je 0x435ee2
mov edx, dword [eax + 0xc]
push edx
call fcn.004490a3
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov eax, dword [eax + 0x10]
mov dword [ebp + 0x10], eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x14], 0
je 0x435f1b
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x435f1b
push eax
call fcn.0043e62f
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.0043e700
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
call dword [esp + 0x38]
jmp 0x435f3f
mov byte [esp + 0x17], 0
jmp 0x435d10
lea edx, [esp + 0x190]
push edx
call fcn.004490a3
add esp, 4
mov dword [ebp + 0xc], eax
add dword [esp + 0x7c], esi
test ebx, ebx
jne 0x435dc5
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov esi, 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 0x435fcb
add esi, 0xc
lea esp, [esp]
mov eax, dword [esi - 4]
test eax, eax
je 0x435fa0
push eax
call fcn.0043e2ad
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x435faf
push eax
call fcn.0043e2ad
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x435fbf
push eax
call fcn.0043e2ad
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x435f90
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x435ffe
cmp byte [esp + 0x17], 0
je 0x436018
mov edx, dword [esp + 0x24]
push edx
call fcn.00440abf
add esp, 4
jmp 0x436018
mov eax, dword [esp + 0x24]
push eax
push 0xe62
call fcn.004308b0
push eax
push 0
call fcn.004128f0
add esp, 0xc
test esi, esi
je 0x436025
push esi
call fcn.0043e2ad
add esp, 4
mov al, bl
jmp 0x436036
mov ecx, dword [esp + 0x20]
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.0043e556
add esp, 0x974
ret 8