Function at 0x1000bf60
Capabilities:
Get common file path

Disassembly:
push 0x884
mov eax, 0x1002bd40
call fcn.1002a0fc
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 0x1000c63b
test edx, edx
je 0x1000c63b
mov ebx, dword [ebx]
mov eax, dword [edx]
mov dword [ebp - 0x87c], eax
test ebx, ebx
je 0x1000c63b
test eax, eax
je 0x1000c63b
test esi, esi
jne 0x1000bfee
cmp eax, dword [ebx + 0x20]
jne 0x1000bfd4
push esi
push dword [ebx + 0x28]
xor eax, eax
push dword [ebx]
inc eax
mov word [ebx + 0x26c], ax
call fcn.1001382b
add esp, 0xc
jmp 0x1000c63b
cmp dword [eax + 0x60], 0
je 0x1000c63b
push dword [eax + 0x60]
push ebx
call fcn.1001382b
pop ecx
pop ecx
jmp 0x1000c63b
xor ecx, ecx
inc ecx
cmp eax, dword [ebx + 0x20]
jne 0x1000bffa
mov word [ebx + 0x32], cx
mov word [eax + 0x4c], cx
xor eax, eax
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], 0xf
mov byte [ebp - 0x850], al
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x870], esi
cmp dword [edx + 8], edi
je 0x1000c0ff
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 0x1000c0ff
movzx eax, word [ebx + 0x26a]
push 0xa
pop ecx
cmp ax, cx
ja 0x1000c06a
jne 0x1000c0ff
xor eax, eax
inc eax
cmp word [ebx + 0x268], ax
jb 0x1000c0ff
call fcn.1000d359
test al, al
jne 0x1000c0ff
push esi
lea ecx, [ebp - 0x868]
call fcn.10001b12
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x868]
push eax
call fcn.10002347
pop ecx
mov edi, eax
lea ecx, [ebp - 0x868]
mov byte [ebp - 4], 2
call fcn.1001382b
xor eax, eax
mov byte [ebp - 4], al
test edi, edi
je 0x1000c0ff
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
mov esi, dword [edi]
test al, al
je 0x1000c0dd
mov ecx, dword [esi + 0x18]
call dword [0x1002e5c4]
mov ecx, edi
call dword [esi + 0x18]
mov dword [ebp - 0x870], eax
jmp 0x1000c0f1
mov ecx, dword [esi]
xor eax, eax
inc eax
push eax
call dword [0x1002e5c4]
mov ecx, edi
call dword [esi]
xor eax, eax
mov edi, eax
test edi, edi
jne 0x1000c184
mov esi, dword [ebp - 0x874]
call fcn.1000d359
test al, al
jne 0x1000c184
push dword [ebx + 8]
call fcn.1001382b
pop ecx
test al, al
je 0x1000c184
xor eax, eax
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 8]
call fcn.1001382b
add esp, 0x10
test eax, eax
je 0x1000c145
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 0x18
lea eax, [ebp - 0x114]
mov ecx, esp
push eax
call fcn.10001b12
lea eax, [ebp - 0x850]
push eax
push esi
call fcn.10006e5d
add esp, 0x20
test al, al
je 0x1000c184
cmp dword [ebp - 0x83c], 0x10
lea eax, [ebp - 0x850]
cmovae eax, dword [ebp - 0x850]
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], 3
call fcn.1000d359
test al, al
je 0x1000c20d
mov esi, dword [ebp - 0x874]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLA]
test eax, eax
je 0x1000c20d
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 0x18
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.10001b12
lea eax, [ebp - 0x838]
push eax
push esi
call fcn.100071e6
add esp, 0x20
test al, al
je 0x1000c20d
cmp dword [ebp - 0x824], 0x10
lea eax, [ebp - 0x838]
cmovae eax, dword [ebp - 0x838]
mov dword [ebp - 0x870], eax
jmp 0x1000c213
mov eax, dword [ebp - 0x870]
push 0
push 0x7fffffff
push eax
call fcn.1001382b
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.1001382b
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.1000d359
test al, al
je 0x1000c290
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 0x1000c2e6
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 0x1000c2e6
xor eax, eax
inc eax
push eax
push eax
lea eax, [ebp - 0x820]
push eax
push dword [ebx + 8]
call fcn.1001382b
add esp, 0x10
xor eax, eax
cmp word [esi + 0x5e], ax
je 0x1000c3a5
call fcn.1000d359
test al, al
je 0x1000c326
test edi, edi
je 0x1000c318
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c31a
xor eax, eax
mov dword [ebp - 0x878], str.CstringUTF8
jmp 0x1000c34f
test edi, edi
je 0x1000c343
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c345
xor eax, eax
mov dword [ebp - 0x878], str.Cstring
mov edx, eax
test edi, edi
mov eax, 0x1002ea51
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.1001382b
add esp, 0x34
jmp 0x1000c5f1
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x880]
push eax
push dword [esi + 0x28]
call fcn.10007e5d
pop ecx
pop ecx
test al, al
je 0x1000c3e9
mov eax, dword [ebp - 0x880]
mov dword [ebp - 0x888], eax
xor eax, eax
push eax
push 0x7fffffff
push dword [ebp - 0x880]
call fcn.1001382b
add esp, 0xc
inc eax
mov dword [ebp - 0x884], eax
mov eax, dword [ebp - 0x86c]
cmp dword [eax + 0x18], 0
je 0x1000c4d9
push str.Content_Disposition:_inline_
push dword [eax + 0x18]
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x1000c413
mov ecx, str.filename
jmp 0x1000c421
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 0x1000c4d9
push 0x1002f9b8
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
mov ecx, eax
mov edx, ecx
test ecx, ecx
je 0x1000c4d9
xor eax, eax
cmp byte [ecx + 1], 0x22
push 0x1002f9bc
sete al
inc edx
add eax, edx
push eax
mov dword [ebp - 0x86c], eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x1000c4d9
mov edx, dword [ebp - 0x86c]
sub eax, edx
mov dword [ebp - 0x86c], eax
lea ecx, [eax + 5]
cmp ecx, 0x400
jae 0x1000c4d9
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 0x1000c641
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 0x1000c4fa
push dword [ebx]
call fcn.1001382b
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1000c4f8
mov dword [ebp - 0x86c], ecx
jmp 0x1000c500
xor eax, eax
mov dword [ebp - 0x86c], eax
call fcn.1000d359
test al, al
je 0x1000c55a
test edi, edi
je 0x1000c526
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c528
xor eax, eax
mov edx, eax
test edi, edi
mov eax, 0x1002ea51
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 0x1000c5a9
test edi, edi
je 0x1000c577
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x87c]
jmp 0x1000c579
xor eax, eax
mov edx, eax
test edi, edi
mov eax, 0x1002ea51
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.1001382b
add esp, 0x3c
cmp dword [ebp - 0x880], 0
je 0x1000c5f1
push dword [ebp - 0x880]
call fcn.1001382b
pop ecx
test edi, edi
je 0x1000c61a
xor eax, eax
cmp word [ebx + 0x260], ax
je 0x1000c614
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
jmp 0x1000c61a
mov dword [ebx + 0x264], edi
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 4
call fcn.1001382b
lea ecx, [ebp - 0x850]
mov dword [ebp - 4], 5
call fcn.1001382b
call fcn.1002a0a6
ret
call fcn.1001382b
int3