Function at 0x10031390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10107ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1015050c]
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 0x100316ac
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 0x1003148d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008e9b0
add esp, 0xc
call fcn.10023cc0
test al, al
je 0x1003142e
call fcn.100316d0
mov ecx, dword [str.BrowserProtectWin10.sys]
test eax, eax
cmovne ecx, dword [str.BrowserProtectWin10_x64.sys]
jmp 0x10031442
call fcn.100316d0
mov ecx, dword [str.BrowserProtectWin7.sys]
test eax, eax
cmovne ecx, dword [str.BrowserProtectWin7_x64.sys]
push ecx
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031460
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 0x10031636
cmp word [0x10155328], 0
jne 0x100314f3
push 0x104
push 0x10155328
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x10155328
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.10023cc0
test al, al
je 0x100314d3
call fcn.100316d0
mov ecx, dword [str.BrowserProtectWin10.sys]
test eax, eax
cmovne ecx, dword [str.BrowserProtectWin10_x64.sys]
jmp 0x100314e7
call fcn.100316d0
mov ecx, dword [str.BrowserProtectWin7.sys]
test eax, eax
cmovne ecx, dword [str.BrowserProtectWin7_x64.sys]
push ecx
push 0x10155328
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10005390
mov ecx, eax
test ecx, ecx
je 0x100316b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, 0x10155328
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x10031531
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.1000d470
jmp 0x10031560
mov ecx, 0x10155328
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031540
sub ecx, edx
sar ecx, 1
push ecx
push 0x10155328
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 0x1003161a
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x224], ecx
jl 0x10031605
mov ecx, dword [ebx]
cmp ecx, dword [eax]
jne 0x10031605
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x100315ae
cmp ecx, dword [ebx]
jne 0x100315ae
mov esi, ebx
lock inc dword [eax]
jmp 0x100315da
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x100316c0
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 0x100315fa
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 0x1003161a
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 0x10031633
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 0x10031670
push esi
call fcn.100753b0
add esp, 4
test eax, eax
je 0x10031670
mov eax, dword [ebp - 0x22c]
push 0
push 0
push esi
push 1
push eax
push eax
call fcn.100321c0
add esp, 0x18
test eax, eax
js 0x10031670
mov edi, 1
jmp 0x10031672
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1003168e
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