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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff67c
push ebx
push esi
push edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov eax, 0x4ad0b4
call fcn.004a0204
push str.MAPI32.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x410bfd
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x410f94
push str.MAPISendMail
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x3c], eax
push str.MAPIResolveName
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x40], eax
push str.MAPIFreeBuffer
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x3c], 0
je 0x410c39
cmp dword [ebp - 0x40], 0
je 0x410c39
cmp dword [ebp - 0x44], 0
jne 0x410c50
push edi
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x410f94
cmp dword [ebp - 0x38], 0
je 0x410c62
mov ecx, dword [ebp - 0x38]
xor eax, eax
mov al, byte [ecx]
cmp eax, 0x2e
je 0x410c66
xor edx, edx
jmp 0x410c6b
mov edx, 1
mov byte [ebp - 0x45], dl
cmp byte [ebp - 0x45], 0
je 0x410c84
inc dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
cmp byte [ecx], 0
jne 0x410c84
xor eax, eax
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x450]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x554]
push eax
push 0x104
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_GetFullPathNameA
push 0x18
push 0
lea edx, [ebp - 0x56c]
push edx
call fcn.0049fc54
mov dword [ebp - 0x564], 0xffffffff
lea ecx, [ebp - 0x554]
add esp, 0xc
mov dword [ebp - 0x560], ecx
lea edx, [ebp - 0x59c]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x55c], eax
push 0x30
push 0
push edx
call fcn.0049fc54
mov dword [ebp - 0x574], 1
lea ecx, [ebp - 0x56c]
add esp, 0xc
mov dword [ebp - 0x570], ecx
lea eax, [ebp - 0xc]
mov word [ebp - 0x20], 8
call fcn.00410ff0
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x14
cmp dword [ebp - 0x38], 0
je 0x410ea7
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x410e8f
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.00411084
mov esi, dword [ebp - 0x57c]
shl esi, 3
lea esi, [esi + esi*2]
add esi, dword [ebp - 0xc]
mov word [ebp - 0x20], 0x14
push 0x18
push 0
push esi
call fcn.0049fc54
add esp, 0xc
push str.SMTP:
lea eax, [ebp - 0x984]
push eax
call fcn.0049fdd4
add esp, 8
push ebx
lea edx, [ebp - 0x984]
push edx
call fcn.0049fcf8
add esp, 8
push 0x4ad07a
push ebx
call fcn.0049fead
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x410dab
inc ebx
xor ecx, ecx
mov cl, byte [ebx]
push ecx
call fcn.004a3ca0
pop ecx
test eax, eax
jne 0x410d9b
push 0x4ad07a
lea eax, [ebp - 0x984]
push eax
call fcn.0049fead
add esp, 8
mov word [ebp - 0x20], 0x14
test eax, eax
je 0x410dcc
mov byte [eax], 0
mov dword [esi + 4], 1
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x97f]
push edx
push 0
push 1
push ecx
push 0
push 0
call dword [ebp - 0x40]
test eax, eax
jne 0x410e71
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 8], 0
je 0x410e10
mov eax, dword [ebp - 0x50]
push dword [eax + 8]
call fcn.0049ff38
pop ecx
mov dword [esi + 8], eax
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0xc], 0
je 0x410e28
mov ecx, dword [ebp - 0x50]
push dword [ecx + 0xc]
call fcn.0049ff38
pop ecx
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0x10]
mov dword [esi + 0x10], edx
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0x14], 0
je 0x410e69
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x10], 0
je 0x410e69
mov edx, dword [ebp - 0x50]
push dword [edx + 0x10]
call fcn.0049eb98
pop ecx
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 0x50]
push dword [ecx + 0x10]
mov eax, dword [ebp - 0x50]
push dword [eax + 0x14]
push dword [esi + 0x14]
call fcn.0049fbe4
add esp, 0xc
push dword [ebp - 0x50]
call dword [ebp - 0x44]
jmp 0x410e81
lea edx, [ebp - 0x984]
push edx
call fcn.0049ff38
pop ecx
mov dword [esi + 0xc], eax
inc dword [ebp - 0x57c]
test ebx, ebx
jne 0x410d34
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x578], ecx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x594], eax
mov dword [ebp - 0x598], eax
push 0
mov edx, 1
cmp dword [ebp - 0x38], 0
jne 0x410eb7
add edx, 8
push edx
lea ecx, [ebp - 0x59c]
push ecx
push 0
push 0
call dword [ebp - 0x3c]
test eax, eax
sete bl
mov word [ebp - 0x20], 0x14
and ebx, 1
xor esi, esi
jmp 0x410f30
lea eax, [esi + esi*2]
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*8 + 8], 0
je 0x410ef5
lea ecx, [esi + esi*2]
mov eax, dword [ebp - 0xc]
push dword [eax + ecx*8 + 8]
call fcn.0049eba8
pop ecx
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + edx*8 + 0xc], 0
je 0x410f12
lea eax, [esi + esi*2]
mov edx, dword [ebp - 0xc]
push dword [edx + eax*8 + 0xc]
call fcn.0049eba8
pop ecx
lea ecx, [esi + esi*2]
mov eax, dword [ebp - 0xc]
cmp dword [eax + ecx*8 + 0x14], 0
je 0x410f2f
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0xc]
push dword [ecx + edx*8 + 0x14]
call fcn.0049eba8
pop ecx
inc esi
cmp esi, dword [ebp - 8]
jl 0x410ed8
lea eax, [ebp - 0x450]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
push edi
call sub.KERNEL32.DLL_FreeLibrary
test bl, bl
je 0x410f5a
cmp byte [ebp - 0x45], 0
je 0x410f5a
push dword [ebp - 0x34]
call fcn.004a2aa0
pop ecx
test bl, bl
jne 0x410f76
push dword [ebp - 0x34]
mov eax, 0x4de
call fcn.00413388
push eax
push 0
call fcn.00480d50
add esp, 0xc
mov eax, ebx
mov edx, 2
push eax
lea eax, [ebp - 0xc]
dec dword [ebp - 0x14]
call fcn.00411058
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret