Function at 0x4626e0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
nop dword [eax + eax]
cmp dword [edi*4 + 0x6a1610], 0
je 0x46272a
inc edi
cmp edi, 0xc8
jb 0x4626f0
push str.Too_many_hanging_threads
call fcn.004631b0
mov ecx, dword [ebp + 8]
add esp, 4
test ecx, ecx
je 0x4629e4
mov eax, dword [ecx]
push 1
call dword [eax]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
push 0
push 0
push ebx
push 0x462ca0
push 0
push 0
mov dword [edi*4 + 0x6a1610], ebx
call fcn.005b9f5c
mov esi, eax
add esp, 0x18
mov eax, dword [ebx + 4]
test eax, eax
je 0x46275a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], esi
test esi, esi
je 0x4629d1
cmp esi, 0xffffffff
je 0x4629d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0xc]
lea ecx, [ebx + 8]
mov esi, eax
call fcn.00462420
test al, al
je 0x4628d7
mov dword [edi*4 + 0x6a1610], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp eax, esi
jae 0x4627a3
dec ecx
mov eax, dword [ebx + 0xc]
cmp eax, 4
ja case.default.0x4627af
jmp dword [eax*4 + 0x4629f0]
cmp byte [ebx + 0x1b], 0
lea esi, [ebx + 0x10]
jge 0x4627c1
mov esi, dword [esi]
mov al, byte [ebx + 0x27]
test al, al
jns 0x4627cd
mov edi, dword [ebx + 0x20]
jmp 0x4627d7
movzx eax, al
mov edi, 5
sub edi, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
test edi, edi
push ecx
push edx
mov ecx, str.Deleted
mov eax, str.Written
push esi
cmove eax, ecx
push eax
push str._s_autorun___S__for__u._03u_seconds
call fcn.004631b0
mov edx, dword [ebx]
add esp, 0x14
mov ecx, ebx
mov byte [ebp - 1], 1
push 1
call dword [edx]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push str.Couldnt_create_key___S___error__d
call fcn.004631b0
mov edx, dword [ebx]
add esp, 0xc
mov ecx, ebx
mov byte [ebp - 1], 0
push 1
call dword [edx]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0x1b], 0
lea ecx, [ebx + 0x10]
jge 0x46285f
mov ecx, dword [ecx]
push eax
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push str.Couldnt_write___S_S___error__d
jmp 0x4628b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push str.Couldnt_open_key___S___error__d
call fcn.004631b0
mov edx, dword [ebx]
add esp, 0xc
mov ecx, ebx
mov byte [ebp - 1], 0
push 1
call dword [edx]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0x1b], 0
lea ecx, [ebx + 0x10]
jge 0x4628ad
mov ecx, dword [ecx]
push eax
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push str.Couldnt_delete___S_S___error__d
call fcn.004631b0
add esp, 0x10
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov byte [ebp - 1], 0
call dword [edx]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 8]
call fcn.00462410
mov esi, dword [ebp + 0xc]
lea ecx, [ebx + 0x10]
mov eax, 0x10624dd3
mul esi
mov edi, edx
shr edi, 6
imul eax, edi, 0x3e8
sub esi, eax
je 0x462958
cmp byte [ecx + 0xb], 0
jge 0x462903
mov ecx, dword [ecx]
mov al, byte [ebx + 0x27]
test al, al
jns 0x46290f
mov edx, dword [ebx + 0x20]
jmp 0x462919
movzx eax, al
mov edx, 5
sub edx, eax
push ecx
test edx, edx
mov ecx, str.delete
mov eax, str.write
cmove eax, ecx
push eax
push str._s_autorun_key___S_
push dword [ebp - 5]
lea eax, [ebp - 0x14]
push eax
call fcn.0043f2f0
test byte [ebp - 9], 0x80
lea eax, [ebp - 0x14]
push esi
cmovne eax, dword [ebp - 0x14]
push edi
push eax
push str.Couldnt__s_during__u._03u_seconds
call fcn.004631b0
add esp, 0x24
jmp 0x4629b2
cmp byte [ecx + 0xb], 0
jge 0x462960
mov ecx, dword [ecx]
mov al, byte [ebx + 0x27]
test al, al
jns 0x46296c
mov edx, dword [ebx + 0x20]
jmp 0x462976
movzx eax, al
mov edx, 5
sub edx, eax
push ecx
test edx, edx
mov ecx, str.delete
mov eax, str.write
cmove eax, ecx
push eax
push str._s_autorun_key___S_
push dword [ebp - 5]
lea eax, [ebp - 0x14]
push eax
call fcn.0043f2f0
test byte [ebp - 9], 0x80
lea eax, [ebp - 0x14]
push edi
cmovne eax, dword [ebp - 0x14]
push eax
push str.Couldnt__s_during__u_seconds
call fcn.004631b0
add esp, 0x20
test byte [ebp - 9], 0x80
je 0x4629e4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4629e4
push eax
call fcn.0044d750
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, ebx
push 1
mov dword [edi*4 + 0x6a1610], 0
call dword [eax]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret