Function at 0x4f4565
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x5e8
lea ebp, [esp - 4]
mov eax, dword [0x6ba0d0]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
push 0xb0
mov eax, 0x636699
call fcn.0058c120
mov esi, ecx
mov dword [ebp - 0x50], esi
push dword [ebp + 0x5f4]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 2
call fcn.004108dc
push dword [ebp + 0x5fc]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004108dc
push dword [ebp + 0x5f8]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.004108dc
push str.mapi32.dll
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4f4675
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.Unable_to_attach_to_mapi32.dll
call fcn.00402035
mov ecx, dword [esi + 0x334]
push 5
call fcn.00415cb2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x5f4]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x5f8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x5fc]
add ecx, 0xfffffff0
call fcn.00401493
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5e8]
xor ecx, ebp
call fcn.0058c0de
add ebp, 0x5ec
leave
ret 0xc
push str.MAPISendMail
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x74], eax
cmp eax, ebx
jne 0x4f4698
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.Unable_to_find_MAPISendMail_function_in_mapi32.dll
jmp 0x4f45f1
push 0x30
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0058d7c0
push 0x18
lea eax, [ebp - 0xbc]
push ebx
push eax
call fcn.0058d7c0
lea eax, [ebp - 0xbc]
add esp, 0x18
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xb8], ebx
call fcn.00428428
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x7c], eax
call fcn.0040b5ab
mov eax, dword [ebp - 0x60]
inc eax
imul eax, eax, 0x18
push eax
push dword [ebp - 0x5c]
call fcn.005944a8
mov ecx, dword [ebp - 0x60]
imul ecx, ecx, 0x18
push 0x18
add ecx, eax
push ebx
push ecx
mov dword [ebp - 0x5c], eax
call fcn.0058d7c0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0058c369
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
imul ecx, ecx, 0x18
mov dword [ecx + edx + 8], eax
add esp, 0x18
lea ecx, [ebp - 0x24]
call fcn.00428428
mov ecx, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x60]
imul eax, eax, 0x18
push dword [eax + ecx + 8]
call fcn.00594ca0
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.0040b5ab
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
imul eax, eax, 0x18
xor edi, edi
inc edi
mov dword [eax + ecx + 4], edi
inc dword [ebp - 0x60]
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x3c]
call fcn.004018a6
mov byte [ebp - 4], 6
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x40]
call fcn.004018a6
mov byte [ebp - 4], 7
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b5f8
mov byte [ebp - 4], 8
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b5f8
mov byte [ebp - 4], 9
cmp dword [esi + 0x2f4], edi
jne 0x4f49a1
lea eax, [ebp + 0x1d8]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
ja 0x4f47c4
cmp eax, ebx
jne 0x4f47e1
push ecx
mov dword [ebp - 0x18], esp
mov ecx, esp
push str.Error_getting_temp_directory
call fcn.00402035
mov ecx, dword [esi + 0x334]
push 3
call fcn.00415cb2
lea eax, [ebp + 0x3e0]
push eax
push ebx
push 0x6685fc
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jne 0x4f481c
push ecx
mov dword [ebp - 0x18], esp
mov ecx, esp
push str.Error_getting_temp_filename
call fcn.00402035
mov ecx, dword [esi + 0x334]
push 3
call fcn.00415cb2
push ebx
lea ecx, [ebp]
call fcn.0050d7a0
push dword [esi + 0x3f4]
mov ecx, dword [esi + 0x334]
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0xa
call fcn.00411a6d
push 4
lea eax, [ebp + 0x3e0]
push eax
lea ecx, [ebp]
call fcn.0050fc70
lea eax, [ebp + 0x3e0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401e24
push dword [esi + 0x3f4]
mov ecx, dword [esi + 0x334]
lea eax, [ebp - 0x38]
push eax
call fcn.0040e2ec
push str..png
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040e47a
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.00401dd7
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xa
call fcn.00401493
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
call fcn.004108dc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call fcn.00428efd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xa
call fcn.00401493
push dword [ebp - 0x40]
lea ecx, [ebp - 0x18]
call fcn.004108dc
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call fcn.00428efd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xa
call fcn.00401493
or dword [ebp - 0x90], 0xffffffff
push edi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
call fcn.0054c5be
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.0040cd7c
push eax
push edi
push dword [ebp - 0x1c]
call fcn.0058eb77
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040b5ab
mov eax, dword [ebp - 0x1c]
push edi
mov dword [ebp - 0x8c], eax
call fcn.0054c5be
pop ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
push dword [eax - 0xc]
lea ecx, [ebp - 0x34]
call fcn.0040cd7c
push eax
push edi
mov edi, dword [ebp - 0x38]
push edi
call fcn.0058eb77
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.0040b5ab
lea eax, [ebp - 0x98]
lea ecx, [ebp]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 9
call fcn.00407758
mov eax, dword [ebp - 0x20]
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
call fcn.0040cd7c
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x78], eax
call fcn.0040b5ab
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x84]
call fcn.00567059
call fcn.0055da6c
mov eax, dword [eax + 4]
push ebx
mov ecx, eax
call fcn.0054fcdd
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.005557bd
mov edi, eax
push dword [edi + 0x20]
mov dword [ebp - 0x28], edi
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0055543f
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
or dword [edi + 0x3c], 4
mov eax, dword [esi + 0x334]
xor ecx, ecx
cmp byte [eax + 0x184], bl
setne cl
lea ecx, [ecx*8 + 1]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xa4]
call fcn.0054db32
mov eax, dword [edi + 0x20]
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x80]
push ecx
push eax
push ebx
mov byte [ebp - 4], 0x10
call dword [esi + 0x74]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xf
jmp 0x4f4a76
mov byte [ebp - 4], 9
call fcn.0054db4a
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [edi + 0x3c], 0xfffffffb
push 1
mov ecx, edi
call fcn.0055c0a5
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push eax
call fcn.0055543f
mov ecx, edi
call fcn.0055c0cc
push dword [ebp - 0x4c]
lea ecx, [esi + 0x84]
push dword [ebp - 0x48]
call fcn.00566fce
cmp dword [ebp - 0x44], ebx
je 0x4f4ac9
push 1
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_EnableWindow]
call fcn.0055da6c
mov eax, dword [eax + 4]
push 1
mov ecx, eax
call fcn.0054fcdd
xor edi, edi
cmp dword [ebp - 0x60], ebx
jbe 0x4f4afe
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x28]
push dword [ecx + eax + 8]
call fcn.0058c433
add dword [ebp - 0x28], 0x18
inc edi
pop ecx
cmp edi, dword [ebp - 0x60]
jb 0x4f4ae4
push dword [ebp - 0x5c]
call fcn.0058c433
cmp dword [esi + 0x2f4], 1
pop ecx
jne 0x4f4b22
push dword [ebp - 0x1c]
call fcn.0054c5c9
push dword [ebp - 0x38]
call fcn.0054c5c9
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 0x3e0]
push eax
call fcn.0058f79d
mov edi, dword [ebp - 0x18]
pop ecx
cmp edi, ebx
je 0x4f4d4d
cmp edi, 0xb
jg 0x4f4bfd
je 0x4f4bed
cmp edi, 0xffffffa7
je 0x4f4bdd
cmp edi, 1
je 0x4f4bcd
cmp edi, 2
je 0x4f4bbd
cmp edi, 3
je 0x4f4bad
cmp edi, 5
je 0x4f4b9d
cmp edi, 9
je 0x4f4b8d
cmp edi, 0xa
jne 0x4f4c26
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.There_were_too_many_recipients
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.There_were_too_many_file_attachments
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.There_was_insufficient_memory_to_proceed
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.There_was_no_default_logon__and_the_user_failed_to_log_on_successfully_when_the_logon_dialog_box_was_displayed
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.One_or_more_unspecified_errors_occurred
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.The_user_canceled_one_of_the_dialog_boxes
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.It_would_have_crashed...
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.The_specified_attachment_was_not_found
jmp 0x4f4cbd
mov eax, edi
sub eax, 0xc
je 0x4f4cb2
dec eax
dec eax
je 0x4f4ca5
dec eax
je 0x4f4c98
sub eax, 3
je 0x4f4c8b
sub eax, 3
je 0x4f4c7e
sub eax, 4
je 0x4f4c71
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018a6
push edi
lea eax, [ebp - 0x1c]
push str.Unknown_MAPI_error:__i
push eax
mov byte [ebp - 4], 0x12
call fcn.00401e49
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00402e5b
mov ecx, dword [esi + 0x334]
push 5
call fcn.00415cb2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401493
jmp 0x4f4ccf
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.One_or_more_recipients_were_invalid_or_did_not_resolve_to_any_address
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.A_recipient_matched_more_than_one_of_the_recipient_descriptor_structures_and_MAPI_DIALOG_was_not_set
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.The_text_in_the_message_was_too_large
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.The_type_of_a_recipient_was_not_MAPI_TO__MAPI_CC__or_MAPI_BCC
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.A_recipient_did_not_appear_in_the_address_list
jmp 0x4f4cbd
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.The_specified_attachment_could_not_be_opened
call fcn.00402035
mov ecx, dword [esi + 0x334]
push 5
call fcn.00415cb2
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x5f4]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x5f8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x5fc]
add ecx, 0xfffffff0
call fcn.00401493
mov al, bl
jmp 0x4f4650
mov bl, 1
jmp 0x4f4ccf