Function at 0x40f010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5110fa
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5634e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
push 0x5c
xor eax, eax
mov dword [ebp - 0x48], 7
push str.http:__int.down.360safe.com_totalsecurity_360TS_Setup_Mini_WW_ldmnq_CPI202302_6.6.0.1054.exe
mov dword [edi], 1
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.00407100
mov dword [ebp - 4], 0
mov eax, dword [0x56cb9c]
test eax, eax
jne 0x40f0bb
push 0x508
call fcn.004d5562
mov esi, eax
add esp, 4
mov dword [ebp - 0xe0], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40f0b0
push 0x508
push 0
push esi
call fcn.004de630
add esp, 0xc
mov ecx, esi
call fcn.0041e100
jmp 0x40f0b2
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x56cb9c], eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.004206d0
push str.ld_360.tmp
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00408d20
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f121
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
push 0x53e398
push 0x122
push str.utility::ufile::removeFile
call fcn.0040c770
add esp, 0x14
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.satart_download__s
push 0x156
push str.LDADManager::download360
call fcn.0040c770
push 0x64
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.004de630
add esp, 0x1c
lea ecx, [ebp - 0xc4]
call fcn.00431390
push 0
push 0xbb8
push 2
push ecx
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0xc4]
call fcn.004316a0
test al, al
jne 0x40f3cd
push 1
push 0xbb8
push 2
push ecx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0xc4]
call fcn.004316a0
test al, al
je 0x40f1ed
push str.ld_360.exe
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xdc]
call fcn.00408d20
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00408450
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0xc8], 8
jb 0x40f40c
push dword [ebp - 0xdc]
jmp 0x40f404
push str.download_ad_error
push 0x165
push str.LDADManager::download360
call fcn.0040c770
mov eax, dword [0x56cb9c]
add esp, 0xc
test eax, eax
jne 0x40f24e
push 0x508
call fcn.004d5562
mov esi, eax
add esp, 4
mov dword [ebp - 0xe0], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x40f243
push 0x508
push 0
push esi
call fcn.004de630
add esp, 0xc
mov ecx, esi
call fcn.0041e100
jmp 0x40f245
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x56cb9c], eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, eax
call fcn.00420690
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 8
jb 0x40f26a
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0xc8], 7
mov dword [ebp - 0xcc], 0
mov word [ebp - 0xdc], ax
cmp word [edx], ax
jne 0x40f290
xor ecx, ecx
jmp 0x40f2a4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f295
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xdc]
call fcn.00407100
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xf8]
push 0x11
xor eax, eax
mov dword [ebp - 0xe4], 7
push str.360_downloaderror
mov dword [ebp - 0xe8], 0
mov word [ebp - 0xf8], ax
call fcn.00407100
mov byte [ebp - 4], 0xa
mov eax, dword [0x56cb9c]
test eax, eax
jne 0x40f332
push 0x508
call fcn.004d5562
mov esi, eax
add esp, 4
mov dword [ebp - 0xe0], esi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x40f327
push 0x508
push 0
push esi
call fcn.004de630
add esp, 0xc
mov ecx, esi
call fcn.0041e100
jmp 0x40f329
xor eax, eax
mov byte [ebp - 4], 0xa
mov dword [0x56cb9c], eax
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.00426980
cmp dword [ebp - 0xe4], 8
jb 0x40f35e
push dword [ebp - 0xf8]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [ebp - 0xe4], 7
cmp dword [ebp - 0xc8], 8
mov dword [ebp - 0xe8], 0
mov word [ebp - 0xf8], ax
jb 0x40f392
push dword [ebp - 0xdc]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [ebp - 0xc8], 7
cmp dword [ebp - 0xfc], 8
mov dword [ebp - 0xcc], 0
mov word [ebp - 0xdc], ax
jb 0x40f3c6
push dword [ebp - 0x110]
call fcn.004c8900
add esp, 4
xor bl, bl
jmp 0x40f4bc
push str.ld_360.exe
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x110]
call fcn.00408d20
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00408450
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0xfc], 8
jb 0x40f40c
push dword [ebp - 0x110]
call fcn.004c8900
add esp, 4
push 2
xor eax, eax
mov dword [edi], 2
push 0x53f494
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xc8], 7
mov dword [ebp - 0xcc], 0
mov word [ebp - 0xdc], ax
call fcn.00407100
push str.ld_360.exe
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xf8]
call fcn.00408d20
sub esp, 8
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0xdc]
mov ecx, eax
call fcn.004091f0
add esp, 0xc
cmp dword [ebp - 0xe4], 8
jb 0x40f486
push dword [ebp - 0xf8]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [ebp - 0xe4], 7
cmp dword [ebp - 0xc8], 8
mov dword [ebp - 0xe8], 0
mov word [ebp - 0xf8], ax
jb 0x40f4ba
push dword [ebp - 0xdc]
call fcn.004c8900
add esp, 4
mov bl, 1
lea ecx, [ebp - 0xc4]
mov dword [edi], 0
mov byte [ebp - 4], 3
call fcn.00430490
cmp dword [ebp - 0x18], 8
jb 0x40f4e2
push dword [ebp - 0x2c]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x40f507
push dword [ebp - 0x44]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x40f52c
push dword [ebp - 0x5c]
call fcn.004c8900
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d5413
mov esp, ebp
pop ebp
ret 4