Function at 0x1001fe30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106304
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10150440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10020262
mov ebx, dword [ebp + 8]
mov ecx, edx
add ebx, 4
mov dword [ebp + 8], ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001fe76
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.10005b40
push 0x101188f8
push 0x1011c98c
mov ecx, ebx
call fcn.1001f9a0
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x1001feba
lea eax, [ecx - 0x10]
push eax
call fcn.10004950
add esp, 4
add eax, 0x10
jmp 0x1001feed
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x1001feca
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1001fed6
call fcn.10005390
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.10007040
mov eax, dword [ebp + 0xc]
mov edx, 0x101188f8
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1001ff1f
test si, si
je 0x1001ff16
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1001ff1f
add ecx, 4
add edx, 4
test si, si
jne 0x1001fef4
mov dword [ebp + 0xc], 0
jmp 0x1001ff27
sbb ecx, ecx
or ecx, 1
mov dword [ebp + 0xc], ecx
or edi, 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001ff41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], 0
mov esi, 0x10
mov dword [ebp - 0x10], esi
jne 0x1001ffe0
mov edx, dword [ebx]
xor esi, esi
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x1001ff7a
lea eax, [edx - 0x10]
push eax
call fcn.10004950
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x1001ffa5
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x1001ff8a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1001ff96
call fcn.10005390
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebx]
lea ecx, [ebp + 0xc]
call fcn.10007040
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.1000adf0
lea edx, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, 0x30
mov eax, edi
mov dword [ebp - 0x10], esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001ffe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov ebx, esi
call fcn.10028880
add esp, 4
test eax, eax
jne 0x100201a4
push 0x101188f8
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.1001e810
push str.BrowserProtect.exe
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
or esi, 1
push eax
mov dword [ebp - 0x10], esi
call fcn.1001e810
add esp, 0x18
push dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x10020081
push 0x101188f8
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.1001e810
push str.BrowserProtectTray.exe
push eax
mov ecx, ebx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x14]
or ecx, 4
push eax
mov dword [ebp - 0x10], ecx
call fcn.1001e810
add esp, 0x18
or ebx, 0xc
push dword [eax]
call esi
mov byte [ebp + 0xf], 0
test eax, eax
je 0x10020085
mov byte [ebp + 0xf], 1
test bl, 8
je 0x100200aa
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffff7
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100200aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 2
test bl, 4
je 0x100200d6
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100200d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov esi, ebx
and ebx, 0xfffffffd
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100200ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
and esi, 0xfffffffc
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x10], esi
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020126
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
mov ebx, dword [ebp + 8]
jne 0x100201a7
push 0x101188f8
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.1001e810
push str.LhpBrowserProtect
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 4
push eax
call fcn.1001e810
add esp, 0x18
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.1000adf0
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020181
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100201a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100201a7
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xf]
call fcn.1001e8e0
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 6
mov ecx, dword [ebx]
mov byte [ebp - 4], 7
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x100201d5
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100201eb
call fcn.10005390
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10020276
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx]
add eax, 0x10
mov dword [ebp + 8], eax
or esi, 0x40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp + 8]
push ecx
push eax
call fcn.1001ecb0
add esp, 0x14
lea eax, [ebp + 8]
mov ecx, 0x10154de0
push eax
call fcn.10020990
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020243
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10020262
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.100047f0
int3