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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.004080b0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push ebx
push eax
call fcn.004080b0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x618]
push ebx
push eax
call fcn.004080b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x414ffc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404595
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402289
cmp dword [0x419580], 1
mov esi, eax
jne 0x401e92
cmp esi, ebx
jne 0x401e92
xor eax, eax
jmp 0x40227a
call fcn.004025e0
mov edi, eax
push 0x51
pop eax
mov word [ebp - 0x594], ax
mov eax, 0x2b8e
mov word [ebp - 0x4f2], ax
mov dword [ebp - 0x618], 0x504d534d
xor eax, eax
movzx ecx, word [eax + 0x414c8c]
mov word [ebp + eax - 0x572], cx
inc eax
inc eax
cmp cx, bx
jne 0x401ebb
xor eax, eax
movzx ecx, word [eax + 0x414c60]
mov word [ebp + eax - 0x614], cx
inc eax
inc eax
cmp cx, bx
jne 0x401ed3
xor eax, eax
movzx ecx, word [eax + 0x414c80]
mov word [ebp + eax - 0x592], cx
inc eax
inc eax
cmp cx, bx
jne 0x401eeb
push 0x419540
lea eax, [ebp - 0x490]
push 0x10
push eax
mov dword [ebp - 0x450], 5
call fcn.00404612
add esp, 0xc
cmp esi, ebx
jne 0x401f29
cmp edi, ebx
je 0x401f9e
push 0x4193b0
lea eax, [ebp - 0x592]
push 0x10
push eax
call fcn.00404612
add esp, 0xc
push 0x419430
lea eax, [ebp - 0x614]
push 0x40
push eax
call fcn.00404612
add esp, 0xc
push 0x4194b8
lea eax, [ebp - 0x572]
push 0x40
push eax
call fcn.00404612
mov ax, word [0x4194b0]
mov word [ebp - 0x594], ax
mov ax, word [0x419538]
mov word [ebp - 0x4f2], ax
mov eax, dword [0x41953c]
add esp, 0xc
mov dword [ebp - 0x450], eax
cmp eax, ebx
jne 0x401f9e
mov dword [ebp - 0x450], 5
push 4
mov edx, 0x414c60
lea eax, [ebp - 0x614]
pop esi
mov cx, word [eax]
cmp cx, word [edx]
jne 0x401fd0
cmp cx, bx
je 0x401fcc
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x401fd0
add eax, esi
add edx, esi
cmp cx, bx
jne 0x401fac
xor eax, eax
jmp 0x401fd5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401fe3
cmp word [ebp - 0x594], 0x53
je 0x402027
xor eax, eax
movzx ecx, word [eax + 0x414c80]
mov word [ebp + eax - 0x592], cx
inc eax
inc eax
cmp cx, bx
jne 0x401fe5
push 0x53
pop eax
mov word [ebp - 0x594], ax
mov dword [ebp - 0x450], 5
xor eax, eax
movzx ecx, word [eax + 0x414c60]
mov word [ebp + eax - 0x614], cx
inc eax
inc eax
cmp cx, bx
jne 0x402011
mov ecx, 0x414c8c
lea eax, [ebp - 0x572]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402056
cmp dx, bx
je 0x402052
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402056
add eax, esi
add ecx, esi
cmp dx, bx
jne 0x402032
xor eax, eax
jmp 0x40205b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x402081
mov dword [ebp - 0x450], 5
xor eax, eax
movzx ecx, word [eax + 0x414c8c]
mov word [ebp + eax - 0x572], cx
inc eax
inc eax
cmp cx, bx
jne 0x40206b
cmp word [ebp - 0x614], bx
je 0x402277
cmp word [ebp - 0x594], bx
jbe 0x402277
mov esi, 0x419540
mov edi, 0x504d534d
mov eax, esi
mov dword [ebp - 0x618], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4020b0
sub eax, edx
sar eax, 1
je 0x4020e3
push esi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4020e3
push esi
lea eax, [ebp - 0x490]
push 0x10
push eax
call fcn.00404612
add esp, 0xc
cmp word [ebp - 0x490], bx
jne 0x402102
push 0x415014
lea eax, [ebp - 0x490]
push 0x10
push eax
call fcn.00404612
add esp, 0xc
cmp word [ebp - 0x470], bx
jne 0x40214d
push 0x415020
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.00404612
mov ecx, 0x419560
mov eax, ecx
add esp, 0xc
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40212b
sub eax, esi
sar eax, 1
je 0x40214d
push ecx
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.00404612
add esp, 0xc
mov dword [ebp - 0x44c], 0x100043b
cmp dword [ebp - 0x450], ebx
jne 0x402169
mov dword [ebp - 0x450], 5
mov eax, edi
mov ecx, pe_nt_image_headers32
lea esi, [ebp - 0x618]
lea edi, [ebp - 0x818]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x618], eax
jne 0x402277
xor eax, eax
not byte [ebp + eax - 0x818]
inc eax
cmp eax, 0x200
jb 0x40218c
lea edi, [ebp - 0x818]
call fcn.00401d30
test eax, eax
je 0x402277
lea edi, [ebp - 0x210]
lea esi, [ebp - 0x470]
call fcn.004027f0
push 0x104
lea eax, [ebp - 0x418]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
push 0x64
pop ecx
xor edx, edx
div ecx
mov eax, edi
push edx
push eax
lea eax, [ebp - 0x418]
call fcn.00402ea0
pop ecx
pop ecx
lea eax, [ebp - 0x81c]
push eax
push 3
push ebx
push 0x414cc0
push closesocket
mov dword [ebp - 0x81c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402260
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402222
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push 0x41502c
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402260
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push ebx
push 0x414c50
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404586
leave
ret