Function at 0x402010
Capabilities:
Check for time delay via gettickcount
Create process on windows
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x21e]
push ecx
mov word [ebp - 0x220], ax
call fcn.00408320
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x426]
push eax
mov word [ebp - 0x428], dx
call fcn.00408320
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4132d4
lea edx, [ebp - 0x220]
push 0x104
push edx
call fcn.004049d7
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402530
cmp dword [0x417640], 1
mov esi, eax
jne 0x4020bf
test esi, esi
jne 0x4020bf
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004049c8
mov esp, ebp
pop ebp
ret
call fcn.004028f0
push 0x200
lea ecx, [ebp - 0x628]
push 0
push ecx
mov ebx, eax
call fcn.00408320
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [ebp - 0x502], ax
mov dword [ebp - 0x628], 0x504d534d
mov word [ebp - 0x5a4], dx
xor eax, eax
movzx ecx, word [eax + 0x4132ec]
mov word [ebp + eax - 0x582], cx
add eax, 2
test cx, cx
jne 0x402100
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x413308]
mov word [ebp + eax - 0x624], cx
add eax, 2
test cx, cx
jne 0x402120
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x413324]
mov word [ebp + eax - 0x5a2], cx
add eax, 2
test cx, cx
jne 0x402140
push 0x417600
lea ecx, [ebp - 0x4a0]
push 0x10
mov edi, 5
push ecx
mov dword [ebp - 0x460], edi
call fcn.00404a4c
add esp, 0xc
test esi, esi
jne 0x402180
test ebx, ebx
je 0x4021f2
push 0x417470
lea edx, [ebp - 0x5a2]
push 0x10
push edx
call fcn.00404a4c
add esp, 0xc
push 0x4174f0
lea eax, [ebp - 0x624]
push 0x40
push eax
call fcn.00404a4c
add esp, 0xc
push 0x417578
lea ecx, [ebp - 0x582]
push 0x40
push ecx
call fcn.00404a4c
mov ax, word [0x4175f8]
mov dx, word [0x417570]
mov word [ebp - 0x502], ax
mov eax, dword [0x4175fc]
add esp, 0xc
mov word [ebp - 0x5a4], dx
mov dword [ebp - 0x460], eax
test eax, eax
jne 0x4021f2
mov dword [ebp - 0x460], edi
mov edx, 0x413330
lea ecx, [ebp - 0x624]
lea ecx, [ecx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x402226
test ax, ax
je 0x402222
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x402226
add ecx, 4
add edx, 4
test ax, ax
jne 0x402200
xor eax, eax
jmp 0x40222b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402247
cmp word [ebp - 0x5a4], 0x51
jne 0x402247
mov ecx, 0x2b70
cmp word [ebp - 0x502], cx
je 0x4022a7
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x41334c]
mov word [ebp + eax - 0x5a2], cx
add eax, 2
test cx, cx
jne 0x402250
mov eax, 0x2b70
mov edx, 0x51
mov word [ebp - 0x502], ax
mov word [ebp - 0x5a4], dx
mov dword [ebp - 0x460], edi
xor eax, eax
jmp 0x402290
movzx ecx, word [eax + 0x413358]
mov word [ebp + eax - 0x624], cx
add eax, 2
test cx, cx
jne 0x402290
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x413374]
mov word [ebp + eax - 0x582], cx
add eax, 2
test cx, cx
jne 0x4022b0
cmp word [ebp - 0x624], cx
je 0x402512
cmp word [ebp - 0x5a4], cx
jbe 0x402512
mov esi, 0x504d534d
mov eax, 0x417600
mov dword [ebp - 0x628], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022f4
sub eax, edx
sar eax, 1
je 0x402331
push 0x417600
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402331
push 0x417600
lea ecx, [ebp - 0x4a0]
push 0x10
push ecx
call fcn.00404a4c
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
xor edx, edx
mov ecx, 0x3e8
div ecx
xor eax, eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
cmp word [ebp - 0x4a0], ax
jne 0x402377
lea ecx, [ebp - 0x14]
call fcn.00402a70
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x4a0]
push 0x10
push edx
call fcn.00404a4c
add esp, 0xc
call ebx
xor edx, edx
mov ecx, 0x41a
div ecx
cmp word [ebp - 0x480], 0
jne 0x4023d8
lea ecx, [ebp - 0x14]
call fcn.00402a70
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x480]
push 0x10
push eax
call fcn.00404a4c
mov eax, 0x417620
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4023b1
sub eax, edx
sar eax, 1
je 0x4023d8
push 0x417620
lea ecx, [ebp - 0x480]
push 0x10
push ecx
call fcn.00404a4c
add esp, 0xc
cmp dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0x10002fa
jne 0x4023f1
mov dword [ebp - 0x460], edi
cmp dword [ebp - 0x628], 0x504d534d
mov dword [ebp - 0x82c], esi
mov ecx, 0x80
lea esi, [ebp - 0x628]
lea edi, [ebp - 0x828]
rep movsd dword es:[edi], dword [esi]
jne 0x402512
lea edx, [ebp - 0x82c]
push edx
lea esi, [ebp - 0x828]
call fcn.00401f20
add esp, 4
test eax, eax
je 0x402512
lea edi, [ebp - 0x220]
lea esi, [ebp - 0x480]
call fcn.00402bb0
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
shr eax, 6
xor edx, edx
mov ecx, 0x64
div ecx
lea eax, [ebp - 0x428]
mov ecx, edx
mov edx, edi
push edx
call fcn.00403200
add esp, 4
lea eax, [ebp - 0x830]
push eax
push 3
push 0
push 0x413390
push connect
mov dword [ebp - 0x830], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4024f8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4024b6
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x830]
push ecx
lea edx, [ebp - 0x220]
push edx
push 1
push 0
push 0x4133fc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4024f8
mov ecx, dword [ebp - 0x830]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x413404
lea edx, [ebp - 0x220]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004049c8
mov esp, ebp
pop ebp
ret