Function at 0x401d40
Capabilities:
Check for time delay via gettickcount
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a9251
push eax
mov dword fs:[0], esp
sub esp, 0x61c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ecx
push ebx
call fcn.0043cfe0
add esp, 4
call fcn.0043d050
mov ecx, ebp
call fcn.00402480
test eax, eax
jne 0x401d88
mov dword [ebp + 0x2c], 3
jmp 0x402030
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x20], ebx
cmp ecx, ebx
je 0x402030
cmp dword [ebp + 0x18], ebx
je 0x402030
call fcn.004368b0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jl 0x401dbb
mov dword [esp + 0x10], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x401de1
mov ecx, dword [0x4c0080]
mov dword [esp + 0x10], ecx
mov esi, dword [eax]
cmp esi, ebx
jne 0x401dcf
xor eax, eax
jmp 0x401dd6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00404780
lea edx, [esp + 0x224]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x224]
push edx
push 0x104
rep stosd dword es:[edi], eax
mov dword [esp + 0x63c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x224]
push ecx
push eax
push str.__tmpini_
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push str..360.cn_
lea ecx, [esp + 0x18]
call fcn.00403d90
cmp eax, 0xffffffff
jne 0x401e95
push ebx
push str..360safe.com_
lea ecx, [esp + 0x18]
call fcn.00403d90
cmp eax, 0xffffffff
jne 0x401e95
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x2c], 1
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402030
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x40201c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [esp + 0x1c]
push 0xea60
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00415170
mov ebx, eax
call esi
mov edx, eax
mov eax, 0x10624dd3
sub edx, edi
mul edx
mov eax, dword [0x4c0080]
shr edx, 6
mov dword [esp + 0x14], eax
push edx
lea ecx, [esp + 0x18]
push str.usetime_d
push ecx
mov byte [esp + 0x640], 1
call fcn.00403dd0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, ebp
push edx
push 0
push 0x18
call fcn.00403460
test ebx, ebx
jne 0x401f75
mov ecx, dword [ebp + 0x18]
call fcn.00415820
test eax, eax
je 0x401f15
mov dword [ebp + 0x2c], 6
jmp 0x401f1c
mov dword [ebp + 0x2c], 2
mov eax, dword [esp + 0x14]
mov edx, dword [0x4c0084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x401f4d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x401f4d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402030
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x402030
jmp 0x402020
lea eax, [esp + 0x1c]
push 0x104
lea ecx, [esp + 0x228]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
push 0x104
lea edx, [esp + 0x234]
push str..dir
push edx
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x18
lea eax, [esp + 0x224]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call fcn.00401d10
lea edx, [esp + 0x1c]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
jne 0x40204b
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp + 0x2c], 4
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402005
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x402005
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402030
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x402030
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x628
ret
mov eax, dword [0x4c0080]
mov dword [esp + 0x18], eax
mov ecx, dword [0x4cf6e8]
lea edx, [esp + 0x42c]
push 0x100
push edx
mov eax, dword [ecx + 8]
push 0xa1
push eax
mov byte [esp + 0x644], 2
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x40208a
mov word [esp + 0x42c], ax
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x4020a9
lea edx, [esp + 0x42c]
lea ecx, [esp + 0x18]
push edx
call fcn.00403cc0
jmp 0x4020f7
push 0x1ff
lea ecx, [esp + 0x1c]
mov esi, 0x200
call fcn.00404560
test eax, eax
je 0x4020ec
push esi
push eax
push 0xa1
call fcn.00404b30
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x4020ec
add esi, 0x100
lea ecx, [esp + 0x18]
lea edx, [esi - 1]
push edx
call fcn.00404560
test eax, eax
jne 0x4020c0
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.00404620
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x224]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00435b60
lea ecx, [esp + 0x224]
mov esi, eax
push ecx
mov ecx, ebp
call fcn.00402910
test esi, esi
jne 0x40217d
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp + 0x2c], 5
mov ecx, dword [0x4c0084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x402169
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x402169
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
jmp 0x401fe9
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp + 0x20], 1
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4021b5
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4021b5
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4021e0
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4021e0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40220b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40220b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
mov eax, 1
jmp 0x402032