Function at 0x1004f2d4
Capabilities:
Get common file path

Disassembly:
push 0x4a4
mov eax, 0x101d64d5
call fcn.10099872
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x478], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x46c], ecx
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x474], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x10211078]
mov dword [ebp - 0x438], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att____
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
mov eax, dword [ebp + 8]
add esp, 0x14
cmp eax, ebx
jne 0x1004f390
push str.Outlook_2003_get_att_count_failed__NULL
lea eax, [ebp - 0x438]
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x438]
call fcn.100cef50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10041a95
xor eax, eax
call fcn.100998f5
ret 0x14
lea edx, [ebp - 0x454]
push edx
mov dword [ebp - 0x454], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 0x454]
mov dword [ebp - 0x45c], eax
push eax
lea eax, [ebp - 0x438]
push str.Outlook_2003_get_att_count_hr0x_08X__count_d
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0x1c
cmp dword [ebp - 0x45c], ebx
jge 0x1004f3e4
push str.Outlook_2003_get_att_count_failed_
jmp 0x1004f34f
mov ecx, esi
call fcn.1004b38a
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.100d48e0
cmp dword [ebp - 0x454], ebx
jle 0x1004fcac
mov eax, dword [0x10211078]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 2
push 0x218
lea eax, [ebp - 0x430]
push ebx
push eax
mov dword [ebp - 0x434], ebx
call fcn.10099920
add esp, 0xc
push 3
xor ecx, ecx
pop eax
mov word [ebp - 0x4b0], ax
inc ecx
mov eax, ecx
mov word [ebp - 0x4ae], ax
xor eax, eax
cmp dword [ebp - 0x454], ecx
lea edi, [ebp - 0x4ac]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x44c], ecx
jl 0x1004fc9d
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x460], 1
mov dword [ebp - 0x4a8], eax
mov dword [ebp - 0x440], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x440]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x4b0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x30]
cmp eax, ebx
mov dword [ebp - 0x464], eax
jl 0x1004fbf8
cmp dword [ebp - 0x440], ebx
je 0x1004fbf8
push 2
pop esi
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x444], ebx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x440]
mov ecx, dword [eax]
lea edx, [ebp - 0x444]
push edx
push eax
call dword [ecx + 0x34]
cmp eax, ebx
mov dword [ebp - 0x464], eax
jge 0x1004f508
mov eax, dword [ebp - 0x440]
mov ecx, dword [eax]
lea edx, [ebp - 0x444]
push edx
push eax
call dword [ecx + 0x2c]
cmp eax, ebx
mov dword [ebp - 0x464], eax
jl 0x1004fbe8
push dword [ebp - 0x444]
lea ecx, [ebp - 0x484]
call fcn.100ce7b0
mov byte [ebp - 4], 6
push dword [eax]
lea eax, [ebp - 0x438]
push str.Outlook_2003_get_att_filename:_s
push eax
call fcn.100d1ed0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x484]
call fcn.100cef50
push ebx
push esi
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0xc
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x460], 3
call fcn.100cecc0
mov eax, dword [0x10211078]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x444]
lea eax, [ebp - 0x45c]
push dword [ebp - 0x44c]
push str.__d__s
push eax
call fcn.100d1ed0
mov esi, dword [ebp - 0x46c]
add esp, 0x10
push ebx
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x45c]
mov ecx, esi
call fcn.100421fa
push 0xffffffffffffffff
lea ecx, [ebp - 0x43c]
mov edi, eax
call fcn.100cfcf0
add esi, 0x1e0
push esi
lea ecx, [ebp - 0x488]
call fcn.100ce7b0
mov byte [ebp - 4], 8
push dword [ebp - 0x43c]
push dword [eax]
lea eax, [ebp - 0x438]
push edi
push str.Outlook_2003_Generate_att_Path_ret__d._dir:_s_path:_s
push eax
call fcn.100d1ed0
add esp, 0x14
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x488]
call fcn.100cef50
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
mov eax, dword [0x10211078]
mov dword [ebp - 0x468], eax
mov byte [ebp - 4], 9
push dword [ebp - 0x43c]
lea eax, [ebp - 0x48c]
push eax
call fcn.1001140a
add esp, 0x14
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x468]
call fcn.100cf0e0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x48c]
call fcn.100cef50
mov eax, dword [ebp - 0x440]
mov esi, dword [eax]
push ebx
lea ecx, [ebp - 0x468]
mov edi, eax
add esi, 0x54
call fcn.100cfc20
push eax
push edi
call dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x468]
mov esi, eax
call fcn.100cfcf0
cmp esi, ebx
jge 0x1004f8ed
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10099920
mov eax, dword [0x10211078]
add esp, 0xc
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x218]
push eax
mov edi, 0x103
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x448]
push 0x101ea8cc
push eax
call fcn.100d1ed0
mov eax, dword [ebp - 0x440]
mov esi, dword [eax]
add esp, 0x10
push ebx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x450], eax
add esi, 0x54
call fcn.100cfc20
push eax
push dword [ebp - 0x450]
call dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x448]
mov esi, eax
call fcn.100cfcf0
cmp esi, ebx
jge 0x1004f7ae
push 0x104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10099920
add esp, 0xc
lea ecx, [ebp - 0x448]
call fcn.100cecc0
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push str.Temp_
push eax
lea eax, [ebp - 0x448]
push str._s_s_s
push eax
call fcn.100d1ed0
mov eax, dword [ebp - 0x440]
mov esi, dword [eax]
add esp, 0x14
push ebx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x450], eax
add esi, 0x54
call fcn.100cfc20
push eax
push dword [ebp - 0x450]
call dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x448]
mov esi, eax
call fcn.100cfcf0
xor eax, eax
cmp esi, ebx
jl 0x1004f7cc
push dword [ebp - 0x43c]
lea eax, [ebp - 0x218]
push eax
call fcn.10010ed9
pop ecx
pop ecx
cmp eax, ebx
jne 0x1004f7d1
mov esi, 0x80004005
push eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att__hr0x_08X___s___d_
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0x20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x448]
call fcn.100cef50
cmp esi, ebx
jge 0x1004f8f2
push esi
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att_1__hr0x_08X
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
mov eax, dword [ebp - 0x440]
add esp, 0x18
lea edx, [ebp - 0x458]
push edx
mov dword [ebp - 0x458], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov esi, eax
cmp esi, ebx
jl 0x1004fb91
cmp dword [ebp - 0x458], ebx
je 0x1004faec
push esi
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att_2__hr0x_08X
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0x18
lea ecx, [ebp - 0x4a0]
call fcn.10063879
mov byte [ebp - 4], 0xc
push dword [ebp - 0x458]
lea ecx, [ebp - 0x4a0]
call fcn.100638e3
mov esi, eax
cmp esi, ebx
jl 0x1004facb
push esi
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att_3__hr0x_08X
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0x18
cmp dword [ebp - 0x490], 1
jne 0x1004f9a8
mov eax, dword [ebp - 0x49c]
jmp 0x1004f9b7
mov edi, 0x103
push dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x478]
mov dword [ebp - 0x460], 4
call fcn.100119f0
mov ecx, dword [ebp - 0x480]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x43c]
push edx
push eax
call fcn.100d4e80
push 0x21c
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.10099920
mov ecx, dword [ebp - 0x46c]
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x43c]
call fcn.100401a4
push dword [ebp - 0x424]
lea eax, [ebp - 0x438]
push dword [ebp - 0x43c]
push str.Outlook_2003_save_att___s___d_
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
push edi
push dword [ebp - 0x444]
lea eax, [ebp - 0x420]
push eax
call fcn.10099ebc
mov ecx, dword [ebp - 0x47c]
add esp, 0x28
lea eax, [ebp - 0x434]
push eax
call fcn.1004b394
jmp 0x1004faec
cmp dword [ebp - 0x490], 2
jne 0x1004f9c2
mov eax, dword [ebp - 0x498]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
mov esi, eax
push esi
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att_4_2___Save_hr0x_08X
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
mov eax, dword [ebp - 0x440]
mov esi, dword [eax]
add esp, 0x18
push ebx
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x450], eax
add esi, 0x54
call fcn.100cfc20
push eax
push dword [ebp - 0x450]
call dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x43c]
mov esi, eax
call fcn.100cfcf0
cmp esi, ebx
jl 0x1004faa8
push dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x478]
mov dword [ebp - 0x460], 4
call fcn.100119f0
mov ecx, dword [ebp - 0x480]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x43c]
push edx
push eax
call fcn.100d4e80
push 0x21c
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.10099920
mov ecx, dword [ebp - 0x46c]
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x43c]
call fcn.100401a4
push edi
push dword [ebp - 0x444]
lea eax, [ebp - 0x420]
push eax
call fcn.10099ebc
mov ecx, dword [ebp - 0x47c]
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
call fcn.1004b394
push esi
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att_5___SaveAsFile_hr0x_08X
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0x18
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x458], ebx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4a0]
call fcn.10063806
cmp esi, ebx
jl 0x1004fb91
mov esi, dword [ebp - 0x474]
cmp esi, ebx
je 0x1004fb91
mov dword [ebp - 0x470], ebx
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x470]
push eax
push ecx
lea eax, [ebp - 0x440]
mov ecx, esp
mov dword [ebp - 0x450], esp
push eax
call fcn.10045869
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x46c]
call fcn.1004dd77
mov ecx, esi
cmp eax, ebx
je 0x1004fb4e
push dword [ebp - 0x470]
call fcn.1000575c
jmp 0x1004fb5c
mov eax, dword [esi + 4]
push 0x101e6ae4
push eax
call fcn.100d4d90
push dword [esi + 4]
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att_AttCid__Size:_d_
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0x18
mov byte [ebp - 4], 9
push dword [ebp - 0x470]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x468]
call fcn.100cef50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x45c]
call fcn.100cef50
mov byte [ebp - 4], 4
push dword [ebp - 0x444]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x440]
call fcn.10041aba
inc dword [ebp - 0x44c]
mov eax, dword [ebp - 0x44c]
cmp eax, dword [ebp - 0x454]
jle 0x1004f45e
jmp 0x1004fc07
mov byte [ebp - 4], 4
push dword [ebp - 0x444]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x440]
call fcn.10041aba
cmp dword [ebp - 0x464], ebx
jge 0x1004fc9d
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x474]
call fcn.100ce550
mov byte [ebp - 4], 0xf
push dword [eax]
lea eax, [ebp - 0x438]
push dword [ebp - 0x464]
push dword [ebp - 0x460]
push str.Outlook_2003_save_att_failed_on_step_d__hr0x_08X__f_s
push eax
call fcn.100d1ed0
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x474]
call fcn.100cef50
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.100cef50
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x438]
call fcn.100cef50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10041a95
mov eax, esi
jmp 0x1004f388
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.100cef50
lea eax, [ebp - 0x438]
push str.Outlook_2003_save_att
push eax
call fcn.100d1ed0
push ebx
push 2
push dword [ebp - 0x438]
call fcn.10063a80
xor esi, esi
add esp, 0x14
inc esi
jmp 0x1004fc7c