Function at 0x10045076
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x101d4b57
call fcn.10099872
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x220], eax
and dword [ebp - 4], 0
cmp dword [0x10269fe8], 0
mov ebx, str.Outlook
mov edi, 0x10269f7c
je 0x100450c8
push dword [ebp + 8]
push str.SaveAttachmentToDisk________p_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x228], eax
cmp dword [ebp + 8], eax
je 0x100455c2
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jge 0x1004510f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x100455b2
cmp dword [0x10269fe8], 0
je 0x1004514f
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
call fcn.100ce7b0
mov byte [ebp - 4], 2
push dword [eax]
push str.SaveAttachmentToDisk_1___s_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.100cef50
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
call fcn.100cf1d0
mov eax, dword [0x10211078]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x224]
lea eax, [ebp - 0x234]
push dword [ebp + 0xc]
push str.__d__s
push eax
call fcn.100d1ed0
mov ecx, dword [ebp - 0x21c]
add esp, 0x10
push 0
push esi
push dword [ebp - 0x234]
call fcn.100421fa
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x220], eax
call fcn.100cfcf0
cmp dword [0x10269fe8], 0
je 0x100451fd
mov eax, dword [ebp - 0x21c]
add eax, 0x1e0
push eax
lea ecx, [ebp - 0x238]
call fcn.100ce7b0
mov byte [ebp - 4], 4
push dword [esi]
push dword [eax]
push dword [ebp - 0x220]
push str.SaveAttachmentToDisk_2___d___s___s_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x1c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.100cef50
mov eax, dword [0x10211078]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 5
push dword [esi]
lea eax, [ebp - 0x220]
push eax
call fcn.1001140a
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x22c]
call fcn.100cf0e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x220]
call fcn.100cef50
mov eax, dword [ebp + 8]
mov esi, dword [eax]
push 0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x220], eax
add esi, 0x54
call fcn.100cfc20
push eax
push dword [ebp - 0x220]
call dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
mov esi, eax
call fcn.100cfcf0
test esi, esi
jge 0x100453f8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.10099920
mov eax, dword [0x10211078]
add esp, 0xc
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push 0x101ea8cc
push eax
call fcn.100d1ed0
mov eax, dword [ebp + 8]
mov esi, dword [eax]
add esp, 0x10
push 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], eax
add esi, 0x54
call fcn.100cfc20
push eax
push dword [ebp - 0x220]
call dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.100cfcf0
test esi, esi
jge 0x1004539d
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10099920
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.100cecc0
push 0x103
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push str.Temp_
push eax
lea eax, [ebp - 0x21c]
push str._s_s_s
push eax
call fcn.100d1ed0
mov eax, dword [ebp + 8]
mov esi, dword [eax]
add esp, 0x14
push 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], eax
add esi, 0x54
call fcn.100cfc20
push eax
push dword [ebp - 0x220]
call dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.100cfcf0
xor eax, eax
test esi, esi
jl 0x100453bd
mov eax, dword [ebp - 0x230]
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call fcn.10010ed9
pop ecx
pop ecx
test eax, eax
jne 0x100453c2
mov esi, 0x80004005
cmp dword [0x10269fe8], 0
je 0x100453e5
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push str.SaveAttachmentToDisk_3___08x___s___d_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x1c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
call fcn.100cef50
test esi, esi
jl 0x10045429
cmp dword [0x10269fe8], 0
je 0x1004541a
mov eax, dword [ebp - 0x230]
push dword [eax]
push str.SaveAttachmentToDisk_4___s_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
mov dword [ebp - 0x228], 1
jmp 0x10045594
cmp dword [0x10269fe8], 0
je 0x10045444
push esi
push str.SaveAttachmentToDisk_5___08x_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
mov eax, dword [ebp + 8]
and dword [ebp - 0x21c], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x10045594
cmp dword [ebp - 0x21c], 0
je 0x10045594
cmp dword [0x10269fe8], 0
je 0x1004548b
push eax
push str.SaveAttachmentToDisk_6___08x_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
lea ecx, [ebp - 0x24c]
call fcn.10063879
mov byte [ebp - 4], 8
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x24c]
call fcn.100638e3
mov esi, eax
test esi, esi
jl 0x10045572
cmp dword [0x10269fe8], 0
je 0x100454d0
push esi
push str.SaveAttachmentToDisk_7___08x_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
cmp dword [ebp - 0x23c], 1
jne 0x100454e1
mov eax, dword [ebp - 0x248]
jmp 0x100454f0
cmp dword [ebp - 0x23c], 2
jne 0x100454fb
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
mov esi, eax
cmp dword [0x10269fe8], 0
je 0x10045516
push esi
push str.SaveAttachmentToDisk_8___08x_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x230]
push 0
mov dword [ebp - 0x220], eax
add esi, 0x54
call fcn.100cfc20
push eax
push dword [ebp - 0x220]
call dword [esi]
mov ecx, dword [ebp - 0x230]
push 0xffffffffffffffff
mov esi, eax
call fcn.100cfcf0
test esi, esi
jl 0x10045557
mov dword [ebp - 0x228], 1
cmp dword [0x10269fe8], 0
je 0x10045572
push esi
push str.SaveAttachmentToDisk_9___08x_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x21c], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.10063806
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x22c]
call fcn.100cef50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.100cef50
mov byte [ebp - 4], 0
push dword [ebp - 0x224]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [0x10269fe8], 0
je 0x100455e2
push dword [ebp - 0x228]
push str.SaveAttachmentToDisk____d_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10041aba
mov eax, dword [ebp - 0x228]
call fcn.100998f5
ret 0x10