Function at 0x10031350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10107ae1
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10150440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], eax
call fcn.10005390
mov ecx, eax
test ecx, ecx
je 0x1003165c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test edi, edi
je 0x10031442
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008e9b0
add esp, 0xc
call fcn.10023c90
test eax, eax
je 0x100313e9
call fcn.10031680
mov ecx, str.BrowserProtectProtectWin10_x64.sys
mov edx, str.BrowserProtectProtectWin10.sys
jmp 0x100313f8
call fcn.10031680
mov ecx, str.BrowserProtectProtectWin7_x64.sys
mov edx, str.BrowserProtectProtectWin7.sys
test eax, eax
lea eax, [ebp - 0x218]
cmove ecx, edx
push ecx
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031415
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10005b40
mov esi, dword [ebp - 0x21c]
jmp 0x100315e6
cmp word [0x10155258], 0
jne 0x100314a3
push 0x104
push 0x10155258
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x10155258
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.10023c90
test eax, eax
je 0x10031483
call fcn.10031680
mov ecx, str.BrowserProtectProtectWin10_x64.sys
mov edx, str.BrowserProtectProtectWin10.sys
jmp 0x10031492
call fcn.10031680
mov ecx, str.BrowserProtectProtectWin7_x64.sys
mov edx, str.BrowserProtectProtectWin7.sys
test eax, eax
cmove ecx, edx
push ecx
push 0x10155258
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10005390
mov ecx, eax
test ecx, ecx
je 0x10031666
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, 0x10155258
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x100314e1
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.1000d470
jmp 0x10031510
mov ecx, 0x10155258
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100314f0
sub ecx, edx
sar ecx, 1
push ecx
push 0x10155258
lea ecx, [ebp - 0x220]
call fcn.10005b40
mov edi, dword [ebp - 0x220]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x228], eax
lea ebx, [edi - 0x10]
cmp ebx, eax
je 0x100315ca
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x224], ecx
jl 0x100315b5
mov ecx, dword [ebx]
cmp ecx, dword [eax]
jne 0x100315b5
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x1003155e
cmp ecx, dword [ebx]
jne 0x1003155e
mov esi, ebx
lock inc dword [eax]
jmp 0x1003158a
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x10031670
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
inc eax
push eax
push edi
push eax
lea eax, [esi + 0x10]
push eax
call fcn.100049e0
add esp, 0x10
mov ecx, dword [ebp - 0x224]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100315aa
mov edx, dword [ebp - 0x228]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x21c], esi
jmp 0x100315ca
push dword [edi - 0xc]
lea ecx, [ebp - 0x21c]
push edi
call fcn.10005b40
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x100315e3
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
or ebx, 0xffffffff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10031620
push esi
call fcn.100753b0
add esp, 4
test eax, eax
je 0x10031620
mov eax, dword [ebp - 0x22c]
push 0
push 0
push esi
push 1
push eax
push eax
call fcn.100321a0
add esp, 0x18
test eax, eax
js 0x10031620
mov edi, 1
jmp 0x10031622
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1003163e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10073638
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100047f0
push 0x80004005
call fcn.100047f0
call fcn.10006050
int3