Function at 0x4160c0
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x461bbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov al, byte [esp + 0x2f]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x28], al
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov ecx, 0x47b768
mov dword [esp + 0x28c], 1
call fcn.00443740
mov ecx, dword [0x47b85c]
mov ecx, dword [ecx + 0xc]
call fcn.0040b5f0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x416294
jmp 0x41612f
xor ebx, ebx
mov eax, dword [0x47b85c]
mov edx, ebp
mov ecx, dword [eax + 0xc]
call fcn.0040b460
cmp eax, ebx
je 0x416145
lea ebx, [eax + 0x10]
lea ecx, [ebx + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, dword [0x46f42c]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], edx
je 0x4161a8
shr eax, 0x10
jne 0x416176
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.00407c70
jmp 0x4161a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4161a8
push edi
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
je 0x4161a8
mov eax, dword [esp + 0x10]
lea ecx, [edi + edi]
push ecx
lea edx, [edi + edi + 2]
push esi
push edx
push eax
call fcn.00407060
add esp, 0x10
mov ecx, dword [esp + 0x10]
push str.ieuser.exe
push ecx
mov byte [esp + 0x294], 2
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x416210
mov edx, dword [ebx + 4]
mov ecx, 0x47b768
push edx
call fcn.004437f0
mov eax, dword [0x47b85c]
mov edx, ebp
mov ecx, dword [eax + 0xc]
call fcn.0040b650
mov edx, dword [0x46f430]
mov ebp, eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x28c], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416289
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416289
jmp 0x416279
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00416060
test eax, eax
jne 0x416232
mov ecx, dword [ebx + 4]
push ecx
mov ecx, esi
call fcn.00415e30
test eax, eax
je 0x416241
mov edx, dword [esp + 0x30]
push ebx
push edx
lea ecx, [esp + 0x30]
call fcn.00418070
mov eax, dword [0x47b85c]
mov edx, ebp
mov ecx, dword [eax + 0xc]
call fcn.0040b650
mov edx, dword [0x46f430]
mov ebp, eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x28c], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416289
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416289
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004535f0
add esp, 4
cmp ebp, 0xffffffff
jne 0x41612d
xor ebx, ebx
mov ecx, 0x47b768
call fcn.004437a0
mov edi, dword [0x46f42c]
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x28c], 3
cmp esi, ebx
je 0x4162d7
mov ecx, dword [esp + 0x30]
mov eax, 0xf6603d99
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x416394
mov ecx, dword [esp + 0x18]
add ecx, 0x5fc
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.00417da0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x294]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, ebx
jl 0x41630e
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x416330
mov edx, dword [0x46f42c]
cmp eax, ebx
mov dword [esi], edx
mov edi, eax
jne 0x416320
xor eax, eax
jmp 0x416327
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.004080a0
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0x14]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416367
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416367
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x294], 0
call fcn.004115c0
mov edx, dword [esp + 0x2c]
push edx
call fcn.004535f0
add esp, 4
jmp 0x4168b0
mov dword [esp + 0x1c], edi
mov byte [esp + 0x28c], 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], ebx
cmp esi, ebx
je 0x4167d4
mov ecx, dword [esp + 0x30]
mov eax, 0xf6603d99
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x44]
cmp eax, edx
jae 0x4167d4
mov ebx, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x38], esi
xor edi, edi
lea ebp, [ebx + 0x5fc]
mov eax, dword [ebp + 4]
test eax, eax
je 0x416456
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0xe6c2b449
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edi, edx
jae 0x416456
mov eax, dword [ebx + 0x600]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov edx, dword [eax + esi]
cmp edx, dword [ecx + ebx + 4]
jne 0x41643d
mov edx, ecx
mov ecx, ebx
lea eax, [eax + esi + 4]
lea edx, [edx + ecx + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41644a
mov ebx, dword [esp + 0x18]
inc edi
add esi, 0x238
jmp 0x4163eb
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], 1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x416490
mov ecx, dword [ebx + 0x600]
lea eax, [edi + edi*8]
shl eax, 3
sub eax, edi
shl eax, 3
cmp dword [eax + ecx + 0x234], 1
jne 0x41677a
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x416669
mov ecx, 0x8e
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edi, 1
mov dword [esp + 0x280], edi
mov edx, dword [ecx + eax + 4]
lea eax, [ecx + eax + 0xc]
lea ecx, [esp + 0x50]
push eax
push 0x104
push ecx
mov dword [esp + 0x58], edx
call fcn.004088b0
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea edx, [esp + 0x50]
push str.360safebox.exe
push edx
call esi
test eax, eax
ja 0x41651a
lea eax, [esp + 0x50]
push str.safeboxtray.exe
push eax
call esi
test eax, eax
ja 0x41651a
lea ecx, [esp + 0x50]
push str.360safe.exe
push ecx
call esi
test eax, eax
ja 0x41651a
lea edx, [esp + 0x50]
push str.360tray.exe
push edx
call esi
test eax, eax
mov dword [esp + 0x280], edi
jbe 0x416525
mov dword [esp + 0x280], 0
mov eax, dword [0x46f42c]
push ecx
mov edi, esp
lea ecx, [esp + 0x54]
test ecx, ecx
mov dword [esp + 0x3c], esp
mov dword [edi], eax
je 0x416593
lea edx, [esp + 0x54]
shr edx, 0x10
jne 0x416557
xor eax, eax
lea ecx, [esp + 0x54]
mov ax, cx
mov ecx, edi
push eax
call fcn.00407c70
jmp 0x416593
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x416593
push esi
mov ecx, edi
call fcn.00408040
test eax, eax
je 0x416593
mov edi, dword [edi]
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x416593
mov edx, ecx
lea esi, [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x44]
mov ecx, 0x47b780
push eax
call fcn.00445aa0
mov eax, dword [esp + 0x40]
mov byte [esp + 0x28c], 5
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4165c5
push eax
lea ecx, [esp + 0x25c]
push 0x14
push ecx
call fcn.004088b0
mov eax, dword [ebp + 8]
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, ebp
call fcn.00417b20
mov eax, dword [ebp + 4]
test eax, eax
je 0x416632
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0xe6c2b449
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x416632
mov eax, dword [ebp + 4]
test eax, eax
jne 0x416601
xor edx, edx
jmp 0x416619
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0xe6c2b449
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, dword [ebx + 0x600]
lea ecx, [edx + edx*8]
shl ecx, 3
sub ecx, edx
lea edx, [eax + ecx*8 - 0x238]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x40]
mov edx, dword [0x46f430]
mov byte [esp + 0x28c], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416669
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416669
mov edx, dword [esp + 0x40]
lea eax, [edx - 0xc]
push eax
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41677a
mov ebx, eax
mov eax, dword [0x46f42c]
mov dword [esp + 0x10], eax
lea esi, [ebx + 0x20c]
test esi, esi
je 0x4166db
mov ecx, esi
shr ecx, 0x10
jne 0x4166a3
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.00407c70
jmp 0x4166db
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4166db
push edi
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
je 0x4166db
lea ecx, [edi + edi]
lea edx, [edi + edi + 2]
cmp edx, ecx
jb 0x4166db
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x28c], 6
mov eax, dword [ecx - 8]
test eax, eax
je 0x416743
add ebx, 4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416743
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 3
mov dword [esp + 0x24], eax
je 0x41679b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00408160
mov eax, 0x473444
test eax, eax
je 0x416734
push 0x473444
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x473444
push eax
lea ecx, [esp + 0x24]
call fcn.00408160
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
mov byte [esp + 0x28c], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41677a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41677a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
inc ecx
add eax, 0x214
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], eax
xor ebx, ebx
jmp 0x4163ac
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
mov byte [esp + 0x28c], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4167da
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4167da
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004535f0
add esp, 4
jmp 0x4167da
cmp dword [esp + 0x24], ebx
jle 0x416845
mov eax, 0x473428
test eax, eax
je 0x4167ee
push 0x473428
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x473428
push eax
lea ecx, [esp + 0x1c]
call fcn.00408160
mov eax, dword [esp + 0x24]
cmp eax, 3
mov eax, dword [esp + 0x1c]
push eax
jne 0x416838
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408160
mov edx, 0x47341c
test edx, edx
jne 0x416826
xor eax, eax
push edx
jmp 0x41683b
push 0x47341c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x47341c
jmp 0x41683b
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408160
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x294]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x416865
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x416875
mov edx, dword [0x46f42c]
push ecx
mov ecx, esi
mov dword [esi], edx
call fcn.00407430
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 1
mov byte [esp + 0x28c], 3
call fcn.00408010
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 1
call fcn.00408010
lea ecx, [esp + 0x28]
mov byte [esp + 0x28c], 0
call fcn.0040abe0
mov ecx, dword [esp + 0x284]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x280
ret 4