Function at 0x10004b90
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001c37d
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x100641b0]
xor eax, esp
mov dword [esp + 0x62c], eax
push ebx
push ebp
push edi
mov eax, dword [0x100641b0]
xor eax, esp
push eax
lea eax, [esp + 0x640]
mov dword fs:[0], eax
mov dword [esp + 0x648], 0
mov dword [esp + 0x1c], 0
mov eax, dword [0x10065888]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x10065888
mov dword [esp + 0x20], edi
call edx
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [esp + 0x28]
push 0
mov dword [esp + 0x650], 0
mov ebp, 1
push eax
mov dword [esp + 0x28], ebp
call fcn.1000e610
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push str.Path
push 0x1001fd50
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x208
call fcn.10001020
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004c50
sub eax, edx
sar eax, 1
lea edx, [esp + 0x24]
mov ebx, eax
push edx
mov eax, edi
call fcn.10002b00
mov eax, dword [edi]
cmp dword [eax - 0xc], 5
jge 0x10004dd9
lea ecx, [esp + 0x14]
push ecx
push str.InstallLocation
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall360
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x208
call fcn.10001020
test eax, eax
jne 0x10004cd2
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004cb0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x24]
mov ebx, eax
push edx
mov eax, edi
call fcn.10002b00
jmp 0x10004dd9
push 0x208
lea eax, [esp + 0x230]
push 0
push eax
call fcn.1000e610
add esp, 0xc
push 0x104
lea ecx, [esp + 0x230]
push ecx
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x230]
call fcn.10002be0
mov dword [esp + 0x648], ebp
mov ecx, dword [esp + 0x10]
push 0x5c
push ecx
call fcn.1000ddae
mov edx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x10004d43
or ecx, 0xffffffff
jmp 0x10004d49
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [edx - 0xc]
lea edx, [esp + 0x10]
sub eax, ecx
push edx
call fcn.10004e70
lea eax, [esp + 0x10]
call fcn.10004e10
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x43e]
push ecx
mov word [esp + 0x440], ax
call fcn.1000e610
mov edx, dword [edi]
push edx
push str._s360Safe.exe
mov ecx, 0x104
lea ebx, [esp + 0x448]
call fcn.10002c90
add esp, 0x14
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10004db1
mov edx, 0x10061238
call fcn.10002ba0
mov byte [esp + 0x648], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004dd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x640]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.1000d1df
add esp, 0x63c
ret