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

Disassembly:
sub esp, 0x824
mov eax, dword [0x41a04c]
xor eax, esp
mov dword [esp + 0x81c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x41a]
push ecx
mov word [esp + 0x41c], ax
call fcn.004092d0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x622]
push eax
mov word [esp + 0x624], dx
call fcn.004092d0
add esp, 0xc
lea ecx, [esp + 0x410]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x417f90
lea edx, [esp + 0x414]
push 0x104
push edx
call fcn.00405832
add esp, 0xc
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402410
cmp dword [0x41c5c0], 1
mov esi, eax
jne 0x40204c
test esi, esi
jne 0x40204c
pop edi
pop esi
mov ecx, dword [esp + 0x81c]
xor ecx, esp
call fcn.004057b4
add esp, 0x824
ret
call fcn.00402820
push 0x200
lea ecx, [esp + 0x14]
push 0
push ecx
mov edi, eax
call fcn.004092d0
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [esp + 0x136], ax
mov dword [esp + 0x10], 0x504d534d
mov word [esp + 0x94], dx
xor eax, eax
jmp 0x402090
movzx ecx, word [eax + 0x417fa8]
mov word [esp + eax + 0xb6], cx
add eax, 2
test cx, cx
jne 0x402090
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x417fc4]
mov word [esp + eax + 0x14], cx
add eax, 2
test cx, cx
jne 0x4020b0
xor eax, eax
jmp 0x4020d0
movzx ecx, word [eax + 0x417fe0]
mov word [esp + eax + 0x96], cx
add eax, 2
test cx, cx
jne 0x4020d0
push 0x41c580
lea ecx, [esp + 0x19c]
push 0x10
push ecx
mov dword [esp + 0x1e4], 5
call fcn.004057c3
add esp, 0xc
test esi, esi
jne 0x402111
test edi, edi
je 0x40218b
push 0x41c3f0
lea edx, [esp + 0x9a]
push 0x10
push edx
call fcn.004057c3
add esp, 0xc
push 0x41c470
lea eax, [esp + 0x18]
push 0x40
push eax
call fcn.004057c3
add esp, 0xc
push 0x41c4f8
lea ecx, [esp + 0xba]
push 0x40
push ecx
call fcn.004057c3
mov ax, word [0x41c578]
mov dx, word [0x41c4f0]
mov word [esp + 0x142], ax
mov eax, dword [0x41c57c]
add esp, 0xc
mov word [esp + 0x94], dx
mov dword [esp + 0x1d8], eax
test eax, eax
jne 0x40218b
mov dword [esp + 0x1d8], 5
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x417fec]
mov word [esp + eax + 0xb6], cx
add eax, 2
test cx, cx
jne 0x402190
cmp word [esp + 0x14], cx
je 0x4023ea
cmp word [esp + 0x94], cx
jbe 0x4023ea
mov eax, 0x41c580
mov dword [esp + 0x10], 0x504d534d
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4021d0
sub eax, edx
sar eax, 1
je 0x40220e
push 0x41c580
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x40220e
push 0x41c580
lea ecx, [esp + 0x19c]
push 0x10
push ecx
call fcn.004057c3
add esp, 0xc
cmp word [esp + 0x198], 0
jne 0x402230
push 0x418008
lea edx, [esp + 0x19c]
push 0x10
push edx
call fcn.004057c3
add esp, 0xc
cmp word [esp + 0x1b8], 0
jne 0x402288
push 0x418014
lea eax, [esp + 0x1bc]
push 0x10
push eax
call fcn.004057c3
mov eax, 0x41c5a0
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402260
sub eax, edx
sar eax, 1
je 0x402288
push 0x41c5a0
lea ecx, [esp + 0x1bc]
push 0x10
push ecx
call fcn.004057c3
add esp, 0xc
cmp dword [esp + 0x1d8], 0
mov dword [esp + 0x1dc], 0x10002eb
jne 0x4022a8
mov dword [esp + 0x1d8], 5
cmp dword [esp + 0x10], 0x504d534d
mov ecx, 0x80
lea esi, [esp + 0x10]
lea edi, [esp + 0x210]
rep movsd dword es:[edi], dword [esi]
jne 0x4023ea
xor eax, eax
lea ebx, [ebx]
mov dl, byte [esp + eax + 0x210]
not dl
mov byte [esp + eax + 0x210], dl
inc eax
cmp eax, 0x200
jb 0x4022d0
lea esi, [esp + 0x210]
call fcn.00401ec0
test eax, eax
je 0x4023ea
lea eax, [esp + 0x410]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call fcn.00402ab0
add esp, 8
push 0x104
lea edx, [esp + 0x61c]
push edx
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 eax, [esp + 0x618]
push edx
lea edx, [esp + 0x414]
push edx
push eax
call fcn.00403350
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 3
push 0
push 0x418020
push closesocket
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4023cf
lea eax, [esp + 0x410]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402390
mov ecx, dword [esp + 8]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x414]
push eax
push 1
push 0
push 0x41808c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4023cf
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x418094
lea eax, [esp + 0x41c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x824]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004057b4
add esp, 0x824
ret