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

Disassembly:
push 0xffffffffffffffff
push 0x1002781d
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x10031210]
xor eax, esp
mov dword [esp + 0x62c], eax
push ebx
push ebp
push edi
mov eax, dword [0x10031210]
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 [0x100786a8]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x100786a8
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.10015cf0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push str.Path
push 0x1002c478
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x208
call fcn.10001150
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004400
sub eax, edx
sar eax, 1
lea edx, [esp + 0x24]
mov ebx, eax
push edx
mov eax, edi
call fcn.10009a50
mov eax, dword [edi]
cmp dword [eax - 0xc], 5
jge 0x10004589
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.10001150
test eax, eax
jne 0x10004482
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004460
sub eax, edx
sar eax, 1
lea edx, [esp + 0x24]
mov ebx, eax
push edx
mov eax, edi
call fcn.10009a50
jmp 0x10004589
push 0x208
lea eax, [esp + 0x230]
push 0
push eax
call fcn.10015cf0
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.10009b30
mov dword [esp + 0x648], ebp
mov ecx, dword [esp + 0x10]
push 0x5c
push ecx
call fcn.10014f21
mov edx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x100044f3
or ecx, 0xffffffff
jmp 0x100044f9
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.10006640
lea eax, [esp + 0x10]
call fcn.100073c0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x43e]
push ecx
mov word [esp + 0x440], ax
call fcn.10015cf0
mov edx, dword [edi]
push edx
push str._s360Safe.exe
mov ecx, 0x104
lea ebx, [esp + 0x448]
call fcn.10009340
add esp, 0x14
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10004561
mov edx, 0x1002d0d4
call fcn.10009af0
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 0x10004589
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.10014002
add esp, 0x63c
ret