Function at 0x411c90
Capabilities:
Get common file path
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4355eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push ebx
mov ebx, ecx
push esi
mov eax, 1
mov ecx, dword [ebx + 0x44]
push edi
xor esi, esi
cmp ecx, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], eax
jne 0x411cf0
mov cl, byte [ebx + 0x25c]
lea eax, [ebx + 0x25c]
test cl, cl
mov dword [ebp - 0x20], esi
jne 0x411cf0
push 2
push 0x443164
push eax
call fcn.0042096d
add esp, 0xc
mov eax, 0xfffffda4
lea edi, [ebx + 0x25c]
sub eax, ebx
mov dword [ebp - 0x18], eax
mov al, byte [edi]
lea ecx, [ebp + esi - 0x4b8]
test al, al
mov byte [ecx], al
je 0x411d57
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x411d49
cmp al, 0x2c
je 0x411d22
cmp al, 0x3b
je 0x411d22
cmp al, 0x5c
jne 0x411d49
mov byte [ecx], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x4b8]
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.0042b36c
mov al, byte [edi]
xor esi, esi
cmp al, 0x5c
jne 0x411d4a
mov dword [ebp - 0x14], 1
jmp 0x411d4a
inc esi
mov eax, dword [ebp - 0x18]
inc edi
add eax, edi
cmp eax, 0x400
jl 0x411d00
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x411d72
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4b8]
push ecx
lea ecx, [esi + 0x3c]
call fcn.0042bb81
jmp 0x411d9a
lea edi, [ebp - 0x4b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411d97
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x4b8]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.0042b36c
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..DOSPrinter.ini
lea eax, [ebp - 0x4b8]
push 0x400
push eax
push 0x448ce0
push 0x44314c
push str.EMAIL
call ebx
lea edi, [ebp - 0x4b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411de6
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x4b8]
push ecx
push eax
mov ecx, esi
call fcn.0042b36c
push str..DOSPrinter.ini
lea edx, [ebp - 0x4b8]
push 0x400
push edx
push 0x448ce0
push 0x443140
push str.EMAIL
call ebx
lea edi, [ebp - 0x4b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411e2d
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x14]
lea edx, [ebp - 0x4b8]
push edx
push eax
call fcn.0042b36c
push str..DOSPrinter.ini
lea eax, [ebp - 0x4b8]
push 0x400
push eax
push 0x448ce0
push 0x44313c
push str.EMAIL
call ebx
lea edi, [ebp - 0x4b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411e74
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x28]
lea edx, [ebp - 0x4b8]
push edx
push eax
call fcn.0042b36c
push str..DOSPrinter.ini
lea eax, [ebp - 0x4b8]
push 0x400
push eax
push 0x448ce0
push str.Subject
push str.EMAIL
call ebx
lea edi, [ebp - 0x4b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411eb7
lea ecx, [ebp - 0x4b8]
push ecx
lea ecx, [esi + 0x3c]
call fcn.0042bb81
push str..DOSPrinter.ini
lea edx, [ebp - 0x4b8]
push 0x400
push edx
push 0x448ce0
push str.Body
push str.EMAIL
call ebx
lea edi, [ebp - 0x4b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411efa
lea eax, [ebp - 0x4b8]
lea ecx, [esi + 0x40]
push eax
call fcn.0042bb81
mov esi, 1
mov ecx, dword [0x4457b0]
mov dword [ebp - 0x14], ecx
push esi
lea edx, [ebp - 0x14]
push str.Attach_d
push edx
mov dword [ebp - 4], 0
call fcn.0042ab8b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x4b8]
push str..DOSPrinter.ini
push 0x400
push eax
push 0x448ce0
push ecx
push str.EMAIL
call ebx
lea edi, [ebp - 0x4b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411f88
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4c]
lea ecx, [edx + 0x44]
lea edx, [ebp - 0x4b8]
push edx
push eax
call fcn.0042b36c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ba44
inc esi
cmp esi, 0x3e8
jl 0x411eff
jmp 0x411f97
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ba44
push str..DOSPrinter.ini
lea eax, [ebp - 0x4b8]
push 0x400
push eax
push 0x448ce0
push str.BodyFile
push str.EMAIL
call ebx
lea edi, [ebp - 0x4b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412047
lea ecx, [ebp - 0x30]
call fcn.0042fff2
push 0
lea ecx, [ebp - 0x4b8]
push 0x40
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.00430104
test eax, eax
je 0x412038
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004303fe
mov ebx, eax
lea edx, [ebx + 1]
push edx
call fcn.0042b785
add esp, 4
mov edi, eax
lea ecx, [ebp - 0x30]
push ebx
push edi
call fcn.00430221
lea ecx, [ebp - 0x30]
call fcn.0043031f
mov eax, dword [ebp + 8]
push edi
mov byte [edi + ebx], 0
lea ecx, [eax + 0x40]
call fcn.0042bb81
push edi
call fcn.0042b7ae
add esp, 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00430047
lea ecx, [ebp - 0x4b8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0xb8]
call fcn.00403490
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 4
call fcn.004036a0
test eax, eax
jne 0x4120b4
mov esi, dword [ebp - 0x1c]
push str.MAPI_not_installed
lea edx, [ebp + 8]
push 0x32
push edx
mov ecx, esi
call fcn.00413120
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [ebp - 4], 5
call fcn.0040cca0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0042ba44
jmp 0x4122c2
push 0x448ce0
lea ecx, [ebp - 0x18]
call fcn.0042bab2
mov eax, dword [0x4457b0]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push 0
lea edx, [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
call fcn.004035d0
test eax, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
sete bl
call fcn.0042ba44
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0042ba44
test bl, bl
je 0x412137
mov esi, dword [ebp - 0x1c]
push str.cannot_logon_to_MAPI_nWhat_is_your_default_email_client_
lea eax, [ebp + 8]
push 0x33
push eax
mov ecx, esi
call fcn.00413120
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [ebp - 4], 8
call fcn.0040cca0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0042ba44
jmp 0x4122c2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
lea ecx, [ebp - 0xb8]
mov dword [esi + 0x5c8], 1
call fcn.00403720
test eax, eax
jne 0x4122ad
lea ecx, [ebp - 0xb8]
call fcn.00403a00
mov ebx, 0x448ce0
lea ecx, [ebp + 8]
push ebx
mov edi, eax
call fcn.0042bab2
cmp edi, 0x1a
mov byte [ebp - 4], 9
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], str.LOGIN_FAILURE
mov dword [ebp - 0x88], str.DISK_FULL
mov dword [ebp - 0x84], str.NO_MEMORY
mov dword [ebp - 0x80], str.ACCESS_DENIED
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], str.TOO_MANY_SESSIONS
mov dword [ebp - 0x74], str.TOO_MANY_FILES
mov dword [ebp - 0x70], str.TOO_MANY_RECIPIENTS
mov dword [ebp - 0x6c], str.ATTACHMENT_NOT_FOUND
mov dword [ebp - 0x68], str.ATTACHMENT_OPEN_FAILURE
mov dword [ebp - 0x64], str.ATTACHMENT_WRITE_FAILURE
mov dword [ebp - 0x60], str.UNKNOWN_RECIPIENT
mov dword [ebp - 0x5c], str.BAD_RECIPIENT_TYPE
mov dword [ebp - 0x58], str.NO_MESSAGES
mov dword [ebp - 0x54], str.INVALID_MESSAGE
mov dword [ebp - 0x50], str.TEXT_TOO_LARGE
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], str.TYPE_NOT_SUPPORTED
mov dword [ebp - 0x44], str.AMBIGUOUS_RECIPIENT
mov dword [ebp - 0x40], str.MESSAGE_IN_USE
mov dword [ebp - 0x3c], str.NETWORK_FAILURE
mov dword [ebp - 0x38], str.INVALID_EDITFIELDS
mov dword [ebp - 0x34], str.INVALID_RECIPIENTS
jge 0x412250
cmp edi, 0xffffffff
jle 0x412250
mov ecx, dword [ebp + edi*4 - 0x98]
push ecx
lea ecx, [ebp + 8]
call fcn.0042bb81
push str.Failed_to_send_mail_nError:__d____s
lea edx, [ebp + 0xc]
push 0x34
push edx
mov ecx, esi
call fcn.00413120
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
push ecx
push edi
lea edx, [ebp + 8]
push eax
push edx
mov byte [ebp - 4], 0xa
call fcn.0042ab8b
add esp, 0x10
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.0042ba44
lea ecx, [ebp - 0xb8]
call fcn.00403a00
cmp eax, 1
je 0x4122a1
mov eax, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.0040cca0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0042ba44
lea ecx, [ebp - 0xb8]
call fcn.004036b0
mov dword [esi + 0x5c8], 0
lea ecx, [ebp - 0x4b8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.004034c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8