Function at 0x1000f4be
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x302c]
mov eax, 0x302c
call fcn.1003a680
push 0xffffffffffffffff
push 0x1006546e
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x3028], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x3034]
lea eax, [ebp + 0x1028]
xor esi, esi
push 0x1000
push esi
mov ebx, esi
push eax
mov dword [ebp - 0x20], ebx
call fcn.1003cd40
lea eax, [ebp + 0x1028]
push 0x800
push eax
call fcn.10036bf4
add esp, 0x14
cmp word [ebp + 0x1028], bx
jne 0x1000f541
xor eax, eax
jmp 0x1000f7a8
push esi
push edi
push esi
call sub.urlmon.dll_IsValidURL
test eax, eax
jne 0x1000f53a
push 0x1000
lea eax, [ebp + 0x28]
push esi
push eax
call fcn.1003cd40
push 0x1000
lea eax, [ebp + 0x2028]
push esi
push eax
call fcn.1003cd40
add esp, 0x18
lea eax, [ebp + 0x28]
push eax
push 0x800
call dword [sym.imp.kernel32.dll_GetTempPathW]
lea eax, [ebp + 0x2028]
push eax
push esi
push 0x10072838
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
push 0x20
call fcn.10058d9a
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x1000f5d7
push edi
lea ecx, [ebp - 0x10]
call fcn.1000155e
mov eax, dword [eax]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x1000f5c6
mov eax, dword [eax]
jmp 0x1000f5c8
mov eax, esi
mov ecx, dword [ebp - 0x24]
push esi
push eax
push esi
call fcn.100011b0
mov edi, eax
jmp 0x1000f5d9
mov edi, esi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1000f5f1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1000f5f1
call fcn.100016f0
mov dword [ebp - 0x10], esi
call fcn.10058d9a
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
lea ecx, [ebp + 0x2028]
push ecx
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.1000dad0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 3
call fcn.1000db5c
test eax, eax
jne 0x1000f79e
push 1
push 0x40
push 1
lea eax, [ebp + 0x2028]
push eax
lea ecx, [ebp - 0xf0]
call fcn.100122d4
mov ebx, esi
mov dword [ebp - 0x14], esi
mov edi, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x94], 0
mov byte [ebp - 4], 5
je 0x1000f707
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xe4], 1
jne 0x1000f6fc
xor eax, eax
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], 7
mov word [ebp], ax
lea eax, [ebp]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.10012073
pop ecx
pop ecx
push 0x10072840
lea ecx, [ebp]
call fcn.100147de
test eax, eax
je 0x1000f6d6
lea eax, [ebp]
push eax
cmp ebx, edi
je 0x1000f6c7
mov ecx, edi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
call fcn.10013aff
push 0x18
pop eax
add edi, eax
mov dword [ebp - 0x18], edi
jmp 0x1000f6d6
push edi
lea ecx, [ebp - 0x1c]
call fcn.10011284
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.10014418
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xe4], 1
je 0x1000f671
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.1001478b
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], esi
push eax
lea eax, [ebp + 0x1028]
mov dword [ebp + 0x1c], esi
push eax
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
call fcn.1001e356
pop ecx
sub edi, ebx
mov dword [ebp - 0x10], esi
pop ecx
mov eax, edi
push 0x18
cdq
pop ecx
idiv ecx
mov edi, eax
test edi, edi
je 0x1000f78b
mov dword [ebp + 8], esi
mov eax, ebx
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
cmp dword [ebx + 0x14], 8
jb 0x1000f74e
mov eax, dword [ebx]
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.1001e356
mov eax, dword [ebp + 0x18]
pop ecx
pop ecx
cmp eax, dword [ebp + 8]
je 0x1000f774
mov ecx, dword [ebp - 0x10]
push 0x18
inc ecx
pop eax
add ebx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, edi
jb 0x1000f738
jmp 0x1000f78b
mov ecx, esi
mov eax, dword [ebp + ecx + 0x1c]
cmp eax, dword [ebp + ecx + 0xc]
jb 0x1000f78b
add ecx, 4
cmp ecx, 0xc
jl 0x1000f776
xor esi, esi
inc esi
lea ecx, [ebp - 0x1c]
call fcn.100143ba
lea ecx, [ebp - 0xf0]
call fcn.10058d9a
lea ecx, [ebp - 0x38]
call fcn.1000db2e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3028]
xor ecx, ebp
call fcn.1003a5a7
add ebp, 0x302c
leave
ret