Function at 0x479660
Capabilities:
Check mutex on windows
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4799c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4799e0
call fcn.00478ff0
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 1
push 0
push eax
push 0x4b9070
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4796d0
mov eax, 0x479a00
call fcn.00475154
xor edx, edx
push ebp
push 0x479988
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x2018
push 0
push 4
push 0x4b9070
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x479708
mov eax, 0x479a14
call fcn.00475154
push 0x2018
push 0
push 0
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x47972f
mov eax, 0x479a30
call fcn.00475154
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, 0x2018
call fcn.00402acc
mov eax, dword [ebp - 0x10]
mov dword [eax], 3
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x2018
mov eax, ebx
neg al
sbb eax, eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov al, byte [ebp - 1]
neg al
sbb eax, eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov ecx, 0xfff
mov edx, esi
call fcn.0040a3d8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReleaseMutex
test eax, eax
jne 0x479793
mov eax, 0x479a48
call fcn.00475154
lea edx, [ebp - 0x70]
mov eax, dword [0x4b9868]
mov eax, dword [eax]
call fcn.0044c074
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x14]
mov ecx, 0x479a60
call fcn.00403d84
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, 0x479a7c
call fcn.0040aa64
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402acc
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x84]
call fcn.0044e86c
mov eax, dword [ebp - 0x84]
call fcn.00403efc
push eax
push 0
push 0x4000000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00403efc
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403efc
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x479843
mov eax, 0x479a98
call fcn.00475154
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x6c]
call fcn.00479314
cmp eax, 0x1c9b28da
je 0x47987a
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0
lea edx, [ebp - 0x8c]
xor ecx, ecx
mov eax, 0x479ab0
call fcn.00475058
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov esi, eax
test esi, esi
je 0x4798b0
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x7c], 0
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, 0x479adc
call fcn.00475058
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, eax
dec edx
je 0x4798c6
dec edx
je 0x4798d8
dec edx
je 0x4798ea
dec edx
je 0x4798fc
jmp 0x479934
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, 0x479b08
call fcn.00475168
jmp 0x479953
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, 0x479b20
call fcn.004750b0
jmp 0x479953
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, 0x479b34
call fcn.004750b0
jmp 0x479953
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.004080b8
test eax, eax
je 0x479953
lea eax, [ebp - 0x90]
xor edx, edx
mov dl, bl
mov edx, dword [edx*4 + 0x4b9068]
call fcn.00403c70
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00475168
jmp 0x479953
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0
lea edx, [ebp - 0x8c]
xor ecx, ecx
mov eax, 0x479b4c
call fcn.00475058
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47998f
cmp dword [ebp - 0x10], 0
je 0x47996f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UnmapViewOfFile
cmp dword [ebp - 0xc], 0
je 0x47997e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret