Function at 0x40ff80
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0803
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40ffab
xor eax, eax
jmp 0x4107e1
mov ebx, dword [esp + 0x60]
mov ecx, 0x95
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x58]
mov esi, 1
cmp eax, esi
push ebx
jne 0x40ffd5
mov eax, dword [ebp + 0x14]
push eax
call fcn.00445f90
add esp, 8
jmp 0x40ffdd
mov ecx, dword [ebp + 0x68]
call fcn.004160d0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x58], esi
jne 0x410194
call edi
mov edx, dword [ebp + 0x3c]
mov ecx, eax
mov eax, dword [ebp + 0x4c]
sub ecx, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, edx
jbe 0x410194
mov eax, dword [ebx + 0x1c]
test eax, eax
ja 0x410194
jb 0x410026
cmp dword [ebx + 0x18], esi
jae 0x410194
mov eax, dword [0x4c8080]
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], 0
call edi
mov edx, dword [ebp + 0x3c]
mov ecx, eax
sub ecx, edx
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
lea edx, [esp + 0x14]
push str.usetime_d
push edx
call fcn.00405120
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x80]
add esp, 0xc
push ecx
push eax
push 0x1f
mov ecx, 0x4d7450
call fcn.004032f0
push 0x90
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x58], 1
je 0x410098
mov ecx, eax
call fcn.004159a0
jmp 0x41009a
xor eax, eax
mov dword [ebp + 0x68], eax
mov edx, dword [0x4d7454]
push edx
mov ecx, eax
mov byte [esp + 0x5c], 0
call fcn.00415a90
test al, al
jne 0x41012a
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x4100f4
mov eax, dword [ebp + 0x80]
push 0
push eax
push 0x20
mov ecx, 0x4d7450
call fcn.004032f0
push ebx
mov ecx, ebp
mov dword [ebp + 0x1c], 3
mov dword [ebp + 0x28], esi
call fcn.00411ef0
push ebx
mov ecx, ebp
call fcn.00412760
mov ecx, 0x4d7450
call fcn.00403290
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410123
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410123
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
mov eax, esi
jmp 0x4107e1
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x54]
push edx
mov edx, dword [ebx + 8]
push edx
mov edx, dword [ebp + 0x48]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x68]
call fcn.00415f60
mov dword [ebp + 0x58], 2
mov byte [ebx + 0x45], 0
mov eax, dword [ebp + 0x14]
push eax
call fcn.004460b0
mov eax, dword [esp + 0x14]
mov edx, dword [0x4c8084]
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410194
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410194
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0043b3d0
add esp, 4
mov ecx, ebp
call fcn.00411020
mov ecx, dword [eax]
mov esi, 3
mov edx, dword [ecx - 0xc]
test edx, edx
jl 0x4101b9
mov dword [esp + 0x60], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x410229
mov ecx, dword [0x4c8080]
mov dword [esp + 0x60], ecx
mov edi, dword [eax]
test edi, edi
jne 0x4101cd
xor esi, esi
jmp 0x4101d6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], esi
call fcn.00405d70
test eax, eax
je 0x41021e
lea eax, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, eax
jb 0x41020d
mov ecx, eax
mov esi, edi
mov edi, dword [esp + 0x60]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
mov dword [ecx - 8], esi
mov edx, dword [esp + 0x60]
mov word [eax + edx], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 3
xor eax, eax
mov dword [esp + 0x58], 2
mov al, byte [ebx + 0x45]
dec eax
cmp eax, 5
ja case.default.0x410240
jmp dword [eax*4 + 0x4107f8]
mov eax, dword [ebp + 0x6c]
test eax, eax
jne 0x410362
mov eax, dword [esp + 0x60]
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x4102a2
lea ecx, [esp + 0x60]
call fcn.00405e10
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x64]
call fcn.00405a70
test eax, eax
je 0x4102a2
mov edi, dword [esp + 0x60]
mov edx, dword [esi + 4]
mov eax, dword [edi - 4]
lea ecx, [edx + edx + 2]
lea eax, [eax + eax + 2]
cmp eax, ecx
jb 0x4102a2
mov edx, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ecx, dword [esp + 0x60]
mov esi, dword [sym.imp.MSVCRT.dll_wcsstr]
mov eax, dword [ecx - 8]
test eax, eax
jl 0x4102de
push 0x4c89e4
push ecx
call esi
mov ecx, dword [esp + 0x68]
add esp, 8
test eax, eax
je 0x4102de
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4102de
push 0x3b
jmp 0x41034b
mov eax, dword [ecx - 8]
test eax, eax
jl 0x410355
push str.SAFE
push ecx
call esi
mov ecx, dword [esp + 0x68]
add esp, 8
test eax, eax
je 0x410305
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x410305
push 0x38
jmp 0x41034b
mov eax, dword [ecx - 8]
test eax, eax
jl 0x410355
push 0x4c89d0
push ecx
call esi
mov ecx, dword [esp + 0x68]
add esp, 8
test eax, eax
je 0x410328
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x410349
mov eax, dword [ecx - 8]
test eax, eax
jl 0x410355
push 0x4c89c8
push ecx
call esi
add esp, 8
test eax, eax
je 0x410355
sub eax, dword [esp + 0x60]
sar eax, 1
cmp eax, 0xffffffff
je 0x410355
push 0x3e
mov ecx, 0x4d7450
call fcn.004033e0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x6c], 1
call edi
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x2c]
test eax, eax
jne case.default.0x410240
mov eax, dword [ebp + 0x28]
test eax, eax
jne case.default.0x410240
cmp dword [ebp + 0x1c], 2
je case.default.0x410240
mov eax, dword [ebp + 0x50]
push 0x4d74cc
push eax
mov dword [ebp + 0x2c], 1
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x41046f
mov eax, dword [ebx + 0xc]
test eax, eax
ja 0x41046f
jb 0x4103c2
cmp dword [ebx + 8], 0x1900000
jae 0x41046f
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x50]
lea esi, [ebp + 0x34]
push eax
push ecx
mov ecx, ebp
call fcn.004125c0
test eax, eax
jne 0x41046f
mov edi, 1
push ebx
mov ecx, ebp
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x1c], 3
mov dword [ebp + 0x28], edi
call fcn.00411ef0
mov ecx, 0x4d7450
call fcn.00403290
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00446030
mov edx, dword [ebp + 0x14]
push edx
call fcn.00446000
mov eax, dword [ebp + 0x14]
push eax
call fcn.004460b0
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 0x78]
lea ecx, [ebp + 0x70]
push esi
push edi
push edx
call fcn.00412bf0
mov eax, dword [esp + 0x60]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4107dd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4107dd
jmp 0x4107cd
mov edi, dword [ebp + 0x34]
lea eax, [ebp + 0x34]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.0043c230
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
xor esi, esi
call fcn.0043cab0
test eax, eax
jne 0x4104a6
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call fcn.0043c260
jmp 0x410504
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.0043c270
test eax, eax
jne 0x4104db
lea edx, [esp + 0x1c]
push edx
call fcn.0043bbf0
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call fcn.0043c260
jmp 0x410504
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x4104e9
cmp eax, 2
jne 0x4104ee
mov esi, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call fcn.0043c260
test esi, esi
jne 0x4106fc
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
push eax
push str.360sign_check_failed__s__n
call fcn.0040f5a0
add esp, 8
mov edi, 1
mov ecx, ebp
mov dword [ebp + 0x64], 2
push ebx
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x1c], 3
call fcn.00411ef0
mov ecx, 0x4d7450
call fcn.00403290
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00446030
mov edx, dword [ebp + 0x14]
push edx
call fcn.00446000
mov eax, dword [ebp + 0x14]
push eax
call fcn.004460b0
add esp, 0xc
mov dword [ebp + 0x28], edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__d__d__n
call fcn.0040f5a0
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x7c]
lea esi, [ebp + 0x70]
sub ecx, eax
sar ecx, 2
add esp, 0xc
cmp ecx, 1
mov edi, eax
jae 0x41064b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4105bc
sub eax, ecx
sar eax, 2
cmp eax, 1
mov ebx, eax
ja 0x4105c1
mov ebx, 1
mov ecx, esi
call fcn.0040dfb0
add eax, ebx
mov dword [esp + 0x18], eax
jns 0x4105d2
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.0040dfd0
mov ecx, dword [esp + 0x10]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.0040e010
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.0040dfd0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040dae0
mov edx, dword [esi + 4]
push edx
call fcn.0043b3d0
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0040dfb0
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov dword [esi + 8], edx
jmp 0x4106c4
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x410693
lea edx, [edi + 4]
mov ecx, esi
push edx
push eax
push edi
call fcn.0040dfd0
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0x10]
mov ecx, eax
mov edx, 1
sub ecx, edi
push ebx
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.0040e010
mov eax, dword [esi + 8]
push ebx
push eax
push edi
call fcn.0040e420
add esp, 0xc
jmp 0x4106c0
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.0040dfd0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.0040e500
mov ecx, dword [esp + 0x1c]
lea edx, [edi + 4]
push ecx
push edx
push edi
call fcn.0040e420
add esp, 0x18
add dword [esi + 8], 4
mov eax, dword [esp + 0x60]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4106f3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4106f3
mov edx, dword [esp + 0x60]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x4107e1
mov ecx, ebp
mov dword [ebp + 0x1c], 2
call fcn.00410860
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov ecx, ebp
mov dword [ebp + 0x44], eax
call fcn.00411ef0
jmp 0x4107a4
call edi
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x28]
test eax, eax
jne case.default.0x410240
mov dword [ebp + 0x64], 0
jmp 0x41078a
call edi
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x28]
test eax, eax
jne case.default.0x410240
mov dword [ebp + 0x64], esi
jmp 0x41078a
call edi
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x28]
test eax, eax
jne case.default.0x410240
mov dword [ebp + 0x64], 4
jmp 0x41078a
call edi
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x28]
test eax, eax
jne case.default.0x410240
mov dword [ebp + 0x64], 5
jmp 0x41078a
call edi
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x28]
test eax, eax
jne case.default.0x410240
mov dword [ebp + 0x64], 6
push ebx
mov ecx, ebp
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x28], 1
call fcn.00411ef0
push ebx
mov ecx, ebp
call fcn.00412760
mov ecx, 0x4d7450
call fcn.00403290
mov eax, dword [esp + 0x60]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4107dd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4107dd
mov edx, dword [esp + 0x60]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 4