Function at 0x1000bea0
Capabilities:
Get common file path

Disassembly:
push 0x884
mov eax, 0x1002ceb4
call fcn.1002b09b
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x86c], edx
mov dword [ebp - 0x874], esi
test ebx, ebx
je 0x1000c5fb
test edx, edx
je 0x1000c5fb
mov ebx, dword [ebx]
mov eax, dword [edx]
mov dword [ebp - 0x87c], eax
test ebx, ebx
je 0x1000c5fb
test eax, eax
je 0x1000c5fb
test esi, esi
jne 0x1000bf2c
cmp eax, dword [ebx + 0x20]
jne 0x1000bf14
push esi
push dword [ebx + 0x28]
xor eax, eax
push dword [ebx]
inc eax
mov word [ebx + 0x26c], ax
call fcn.10020c07
add esp, 0xc
jmp 0x1000c5fb
cmp dword [eax + 0x60], 0
je 0x1000c5fb
push dword [eax + 0x60]
push ebx
call fcn.10020c07
jmp 0x1000c5f9
xor ecx, ecx
inc ecx
cmp eax, dword [ebx + 0x20]
jne 0x1000bf38
mov word [ebx + 0x32], cx
mov word [eax + 0x4c], cx
xor eax, eax
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], 0xf
mov byte [ebp - 0x868], al
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x870], esi
cmp dword [edx + 8], edi
je 0x1000c078
push 4
push dword [edx + 8]
push str.file
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1000c078
movzx eax, word [ebx + 0x26a]
push 0xa
pop ecx
cmp ax, cx
ja 0x1000bfa8
jne 0x1000c078
xor eax, eax
inc eax
cmp word [ebx + 0x268], ax
jb 0x1000c078
call fcn.1000d329
test al, al
jne 0x1000c078
xor eax, eax
mov dword [ebp - 0x83c], 0xf
push esi
lea ecx, [ebp - 0x850]
mov dword [ebp - 0x840], eax
mov byte [ebp - 0x850], al
call fcn.1000323d
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x850]
push eax
call fcn.100023c1
mov edi, eax
xor eax, eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x83c]
pop ecx
cmp eax, 0x10
jb 0x1000c00d
inc eax
push eax
push dword [ebp - 0x850]
call fcn.10020c07
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x83c], 0xf
mov dword [ebp - 0x840], eax
mov byte [ebp - 0x850], al
test edi, edi
je 0x1000c078
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
mov esi, dword [edi]
test al, al
je 0x1000c056
mov ecx, dword [esi + 0x18]
call dword [0x1002f5c0]
mov ecx, edi
call dword [esi + 0x18]
mov dword [ebp - 0x870], eax
jmp 0x1000c06a
mov ecx, dword [esi]
xor eax, eax
inc eax
push eax
call dword [0x1002f5c0]
mov ecx, edi
call dword [esi]
xor eax, eax
mov edi, eax
test edi, edi
jne 0x1000c10f
mov esi, dword [ebp - 0x874]
call fcn.1000d329
test al, al
jne 0x1000c10f
push dword [ebx + 8]
call fcn.10020c07
pop ecx
test al, al
je 0x1000c10f
xor eax, eax
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 8]
call fcn.10020c07
add esp, 0x10
test eax, eax
je 0x1000c0c2
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ecx + 0x10], eax
mov byte [ecx], al
lea eax, [ebp - 0x114]
push eax
mov dword [ecx + 0x14], 0xf
call fcn.1000323d
lea eax, [ebp - 0x868]
push eax
push esi
call fcn.10006f04
add esp, 0x20
test al, al
je 0x1000c10f
cmp dword [ebp - 0x854], 0x10
lea eax, [ebp - 0x868]
cmovae eax, dword [ebp - 0x868]
mov dword [ebp - 0x870], eax
xor eax, eax
mov dword [ebp - 0x824], 0xf
mov dword [ebp - 0x828], eax
mov byte [ebp - 0x838], al
mov byte [ebp - 4], 2
call fcn.1000d329
test al, al
je 0x1000c1a6
mov esi, dword [ebp - 0x874]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLA]
test eax, eax
je 0x1000c1a6
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ecx + 0x10], eax
mov byte [ecx], al
lea eax, [ebp - 0x218]
push eax
mov dword [ecx + 0x14], 0xf
call fcn.1000323d
lea eax, [ebp - 0x838]
push eax
push esi
call fcn.10007271
add esp, 0x20
test al, al
je 0x1000c1a6
cmp dword [ebp - 0x824], 0x10
lea eax, [ebp - 0x838]
cmovae eax, dword [ebp - 0x838]
mov dword [ebp - 0x870], eax
jmp 0x1000c1ac
mov eax, dword [ebp - 0x870]
push 0
push 0x7fffffff
push eax
call fcn.10020c07
mov esi, dword [ebp - 0x87c]
inc eax
mov dword [ebp - 0x874], eax
push 0
push 0x7fffffff
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x888], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x884], eax
mov eax, dword [ebp - 0x86c]
mov eax, dword [eax + 8]
push eax
mov dword [ebp - 0x88c], eax
call fcn.10020c07
inc eax
mov dword [ebp - 0x890], eax
xor eax, eax
push 0x400
push eax
lea eax, [ebp - 0x618]
push eax
call sub.VCRUNTIME140.dll_memset
or dword [ebp - 0x878], 0xffffffff
add esp, 0x24
call fcn.1000d329
test al, al
je 0x1000c229
xor eax, eax
inc eax
mov word [esi + 0x5e], ax
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x820]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x870]
add esp, 0xc
test eax, eax
je 0x1000c27f
push 0x104
lea ecx, [ebp - 0x820]
push ecx
push 0xffffffffffffffff
push eax
push 8
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x1000c27f
xor eax, eax
inc eax
push eax
push eax
lea eax, [ebp - 0x820]
push eax
push dword [ebx + 8]
call fcn.10020c07
add esp, 0x10
xor eax, eax
cmp word [esi + 0x5e], ax
je 0x1000c33e
call fcn.1000d329
test al, al
je 0x1000c2bf
test edi, edi
je 0x1000c2b1
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c2b3
xor eax, eax
mov dword [ebp - 0x878], str.CstringUTF8
jmp 0x1000c2e8
test edi, edi
je 0x1000c2dc
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c2de
xor eax, eax
mov dword [ebp - 0x878], str.Cstring
mov edx, eax
test edi, edi
mov eax, 0x1002fb8c
mov ecx, str.MMFS
cmove ecx, eax
mov eax, dword [esi + 0x24]
xor esi, esi
push esi
push esi
push edx
push ecx
push dword [ebp - 0x878]
mov ecx, dword [ebp - 0x870]
push dword [ebp - 0x890]
push dword [ebp - 0x88c]
push dword [ebp - 0x884]
push dword [ebp - 0x888]
push dword [ebp - 0x874]
push ecx
push eax
push dword [ebx + 8]
call fcn.10020c07
add esp, 0x34
jmp 0x1000c586
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x880]
push eax
push dword [esi + 0x28]
call fcn.10007edc
pop ecx
pop ecx
test al, al
je 0x1000c382
mov eax, dword [ebp - 0x880]
mov dword [ebp - 0x888], eax
xor eax, eax
push eax
push 0x7fffffff
push dword [ebp - 0x880]
call fcn.10020c07
add esp, 0xc
inc eax
mov dword [ebp - 0x884], eax
mov eax, dword [ebp - 0x86c]
cmp dword [eax + 0x18], 0
je 0x1000c46e
push str.Content_Disposition:_inline_
push dword [eax + 0x18]
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x1000c3ac
mov ecx, str.filename
jmp 0x1000c3ba
mov eax, dword [ebp - 0x86c]
mov ecx, str.Content_Disposition:_filename
mov eax, dword [eax + 0x18]
push ecx
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x1000c46e
push 0x10030a90
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x1000c46e
xor ecx, ecx
cmp byte [eax + 1], 0x22
push 0x10030a94
sete cl
inc ecx
add eax, ecx
push eax
mov dword [ebp - 0x86c], eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x1000c46e
mov edx, dword [ebp - 0x86c]
sub eax, edx
mov dword [ebp - 0x86c], eax
lea ecx, [eax + 5]
cmp ecx, 0x400
jae 0x1000c46e
push eax
push edx
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [ebp - 0x86c]
add esp, 0xc
cmp eax, 0x400
jae 0x1000c601
xor ecx, ecx
mov byte [ebp + eax - 0x618], cl
lea eax, [ebp - 0x618]
push str..pdf
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [ebp - 0x618]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 0xc
mov dword [ebp - 0x878], eax
xor eax, eax
cmp word [esi + 0x16], ax
je 0x1000c48f
push dword [ebx]
call fcn.10020c07
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1000c48d
mov dword [ebp - 0x86c], ecx
jmp 0x1000c495
xor eax, eax
mov dword [ebp - 0x86c], eax
call fcn.1000d329
test al, al
je 0x1000c4ef
test edi, edi
je 0x1000c4bb
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c4bd
xor eax, eax
mov edx, eax
test edi, edi
mov eax, 0x1002fb8c
mov ecx, str.MMFS
cmove ecx, eax
mov eax, dword [ebp - 0x878]
inc eax
push eax
lea eax, [ebp - 0x618]
push eax
push edx
push dword [ebp - 0x86c]
push dword [esi + 0x20]
push ecx
push str.CstringUTF8
jmp 0x1000c53e
test edi, edi
je 0x1000c50c
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c50e
xor eax, eax
mov edx, eax
test edi, edi
mov eax, 0x1002fb8c
mov ecx, str.MMFS
cmove ecx, eax
mov eax, dword [ebp - 0x878]
inc eax
push eax
lea eax, [ebp - 0x618]
push eax
push edx
push dword [ebp - 0x86c]
push dword [esi + 0x20]
push ecx
push str.Cstring
push dword [ebp - 0x890]
mov ecx, dword [ebp - 0x870]
push dword [ebp - 0x88c]
push dword [ebp - 0x884]
push dword [ebp - 0x888]
push dword [ebp - 0x874]
push ecx
push dword [esi + 0x24]
push dword [ebx + 8]
call fcn.10020c07
add esp, 0x3c
cmp dword [ebp - 0x880], 0
je 0x1000c586
push dword [ebp - 0x880]
call fcn.10020c07
pop ecx
test edi, edi
je 0x1000c5af
xor eax, eax
cmp word [ebx + 0x260], ax
je 0x1000c5a9
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
jmp 0x1000c5af
mov dword [ebx + 0x264], edi
mov eax, dword [ebp - 0x824]
cmp eax, 0x10
jb 0x1000c5c9
inc eax
push eax
push dword [ebp - 0x838]
call fcn.10020c07
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x824], 0xf
mov dword [ebp - 0x828], eax
mov byte [ebp - 0x838], al
mov eax, dword [ebp - 0x854]
cmp eax, 0x10
jb 0x1000c5fb
inc eax
push eax
push dword [ebp - 0x868]
call fcn.10020c07
pop ecx
pop ecx
call fcn.1002b045
ret
call fcn.10020c07
int3