Function at 0x49dd30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5ab2ae
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x49deb5
lea ecx, [esp + 0x18]
push ecx
call fcn.004238b0
add esp, 4
mov dword [esp + 0x2c], 0
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49dd9d
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
test byte [0x61f72c], 1
mov byte [esp + 0x2c], 1
jne 0x49ddd6
or dword [0x61f72c], 1
mov byte [esp + 0x2c], 2
call fcn.0049db30
mov dword [0x61f728], eax
mov byte [esp + 0x2c], 1
push str._safemonWdHPFileSafe.dll
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040d150
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.0040cb00
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49de21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x61f728], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x49de5d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49de5d
push esi
call ebp
test eax, eax
je 0x49de5d
push str.CreateHPCtrl
push eax
call ebx
test eax, eax
je 0x49de5d
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], 0
je 0x49dece
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49de8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49deb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.AntiAdwa.dll
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0040d150
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.0040cb00
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49df19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49df79
mov byte [esp + 0x2c], al
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49df48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dffc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49dffc
push esi
call ebp
test eax, eax
je 0x49dfea
push str.AntiWare_CreatePluginControl
push eax
call ebx
test eax, eax
je 0x49dfea
call eax
mov dword [edi + 4], eax
test eax, eax
je 0x49dfea
lea esi, [edi + 8]
mov dword [esi], 0
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 4]
push str.IAntiPluginHomePage
call eax
test eax, eax
jl 0x49dfea
cmp dword [esi], 0
je 0x49dfea
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [esp + 0x14]
call fcn.0040c150
lea ecx, [esp + 0x18]
call fcn.0040c150
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x14]
call fcn.0040c150
lea ecx, [esp + 0x18]
call fcn.0040c150
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret