Function at 0x1000bef0
Capabilities:
Get common file path

Disassembly:
push 0x884
mov eax, 0x1002cf52
call fcn.1002b28b
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 0x1000c646
test edx, edx
je 0x1000c646
mov ebx, dword [ebx]
mov eax, dword [edx]
mov dword [ebp - 0x87c], eax
test ebx, ebx
je 0x1000c646
test eax, eax
je 0x1000c646
test esi, esi
jne 0x1000bf7c
cmp eax, dword [ebx + 0x20]
jne 0x1000bf64
push esi
push dword [ebx + 0x28]
xor eax, eax
push dword [ebx]
inc eax
mov word [ebx + 0x26c], ax
call fcn.10018fe0
add esp, 0xc
jmp 0x1000c646
cmp dword [eax + 0x60], 0
je 0x1000c646
push dword [eax + 0x60]
push ebx
call fcn.10018fe0
jmp 0x1000c644
xor ecx, ecx
inc ecx
cmp eax, dword [ebx + 0x20]
jne 0x1000bf88
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 0x1000c0c3
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 0x1000c0c3
movzx eax, word [ebx + 0x26a]
push 0xa
pop ecx
cmp ax, cx
ja 0x1000bff8
jne 0x1000c0c3
xor eax, eax
inc eax
cmp word [ebx + 0x268], ax
jb 0x1000c0c3
call fcn.1000d349
test al, al
jne 0x1000c0c3
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.100031f1
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x850]
push eax
call fcn.100023a6
mov edi, eax
xor eax, eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x83c]
pop ecx
cmp eax, 0x10
jb 0x1000c05d
inc eax
push eax
push dword [ebp - 0x850]
call fcn.10018fe0
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 0x1000c0c3
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
mov esi, dword [edi]
test al, al
je 0x1000c0a9
mov ecx, dword [esi + 0x18]
call dword [0x1002f5c8]
mov ecx, edi
call dword [esi + 0x18]
mov dword [ebp - 0x870], eax
jmp 0x1000c15a
mov ecx, dword [esi]
xor eax, eax
inc eax
push eax
call dword [0x1002f5c8]
mov ecx, edi
call dword [esi]
mov esi, dword [ebp - 0x874]
xor eax, eax
mov edi, eax
call fcn.1000d349
test al, al
jne 0x1000c15a
push dword [ebx + 8]
call fcn.10018fe0
pop ecx
test al, al
je 0x1000c15a
xor eax, eax
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 8]
call fcn.10018fe0
add esp, 0x10
test eax, eax
je 0x1000c10d
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.100031f1
lea eax, [ebp - 0x868]
push eax
push esi
call fcn.10006f24
add esp, 0x20
test al, al
je 0x1000c15a
cmp dword [ebp - 0x854], 0x10
lea esi, [ebp - 0x868]
cmovae esi, dword [ebp - 0x868]
mov dword [ebp - 0x870], esi
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.1000d349
test al, al
je 0x1000c1f1
mov esi, dword [ebp - 0x874]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLA]
test eax, eax
je 0x1000c1f1
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.100031f1
lea eax, [ebp - 0x838]
push eax
push esi
call fcn.10007291
add esp, 0x20
test al, al
je 0x1000c1f1
cmp dword [ebp - 0x824], 0x10
lea eax, [ebp - 0x838]
cmovae eax, dword [ebp - 0x838]
mov dword [ebp - 0x870], eax
jmp 0x1000c1f7
mov eax, dword [ebp - 0x870]
push 0
push 0x7fffffff
push eax
call fcn.10018fe0
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.10018fe0
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.1000d349
test al, al
je 0x1000c274
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 0x1000c2ca
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 0x1000c2ca
xor eax, eax
inc eax
push eax
push eax
lea eax, [ebp - 0x820]
push eax
push dword [ebx + 8]
call fcn.10018fe0
add esp, 0x10
xor eax, eax
cmp word [esi + 0x5e], ax
je 0x1000c389
call fcn.1000d349
test al, al
je 0x1000c30a
test edi, edi
je 0x1000c2fc
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c2fe
xor eax, eax
mov dword [ebp - 0x878], str.CstringUTF8
jmp 0x1000c333
test edi, edi
je 0x1000c327
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c329
xor eax, eax
mov dword [ebp - 0x878], str.Cstring
mov edx, eax
test edi, edi
mov eax, 0x1002fbdc
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.10018fe0
add esp, 0x34
jmp 0x1000c5d1
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x880]
push eax
push dword [esi + 0x28]
call fcn.10007f01
pop ecx
pop ecx
test al, al
je 0x1000c3cd
mov eax, dword [ebp - 0x880]
mov dword [ebp - 0x888], eax
xor eax, eax
push eax
push 0x7fffffff
push dword [ebp - 0x880]
call fcn.10018fe0
add esp, 0xc
inc eax
mov dword [ebp - 0x884], eax
mov eax, dword [ebp - 0x86c]
cmp dword [eax + 0x18], 0
je 0x1000c4b9
push str.Content_Disposition:_inline_
push dword [eax + 0x18]
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x1000c3f7
mov ecx, str.filename
jmp 0x1000c405
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 0x1000c4b9
push 0x10030ad0
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x1000c4b9
xor ecx, ecx
cmp byte [eax + 1], 0x22
push 0x10030ad4
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 0x1000c4b9
mov edx, dword [ebp - 0x86c]
sub eax, edx
mov dword [ebp - 0x86c], eax
lea ecx, [eax + 5]
cmp ecx, 0x400
jae 0x1000c4b9
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 0x1000c64c
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 0x1000c4da
push dword [ebx]
call fcn.10018fe0
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1000c4d8
mov dword [ebp - 0x86c], ecx
jmp 0x1000c4e0
xor eax, eax
mov dword [ebp - 0x86c], eax
call fcn.1000d349
test al, al
je 0x1000c53a
test edi, edi
je 0x1000c506
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c508
xor eax, eax
mov edx, eax
test edi, edi
mov eax, 0x1002fbdc
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 0x1000c589
test edi, edi
je 0x1000c557
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c559
xor eax, eax
mov edx, eax
test edi, edi
mov eax, 0x1002fbdc
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.10018fe0
add esp, 0x3c
cmp dword [ebp - 0x880], 0
je 0x1000c5d1
push dword [ebp - 0x880]
call fcn.10018fe0
pop ecx
test edi, edi
je 0x1000c5fa
xor eax, eax
cmp word [ebx + 0x260], ax
je 0x1000c5f4
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
jmp 0x1000c5fa
mov dword [ebx + 0x264], edi
mov eax, dword [ebp - 0x824]
cmp eax, 0x10
jb 0x1000c614
inc eax
push eax
push dword [ebp - 0x838]
call fcn.10018fe0
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 0x1000c646
inc eax
push eax
push dword [ebp - 0x868]
call fcn.10018fe0
pop ecx
pop ecx
call fcn.1002b235
ret
call fcn.10018fe0
int3