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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
push edi
xor ebx, 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 0x457975
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x45798c
call fcn.00457008
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 1
push 0
push eax
push 0x498af8
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4576a5
mov eax, 0x4579ac
call fcn.00452b0c
xor edx, edx
push ebp
push 0x45794b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x2018
push 0
push 4
push 0x498af8
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4576dd
mov eax, 0x4579c0
call fcn.00452b0c
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 0x457704
mov eax, 0x4579dc
call fcn.00452b0c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, 0x2018
call fcn.00402934
mov eax, dword [ebp - 0x10]
mov dword [eax], 3
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x2018
xor eax, eax
mov al, bl
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
xor eax, eax
mov al, byte [ebp - 1]
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.004073d8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReleaseMutex
test eax, eax
jne 0x457764
mov eax, 0x4579f4
call fcn.00452b0c
lea edx, [ebp - 0x70]
mov eax, dword [0x49b12c]
call fcn.0042c40c
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x14]
mov ecx, 0x457a0c
call fcn.004035c0
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, 0x457a28
call fcn.004078fc
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402934
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x70]
call fcn.0042d890
mov eax, dword [ebp - 0x70]
call fcn.00403738
push eax
push 0
push 0x4000000
push 1
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00403738
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x45780c
mov eax, 0x457a44
call fcn.00452b0c
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x6c]
call fcn.004572f0
cmp eax, 0x1c9b28da
je 0x457843
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
lea edx, [ebp - 0x88]
xor ecx, ecx
mov eax, 0x457a5c
call fcn.00452a10
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov esi, eax
test esi, esi
je 0x457879
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, 0x457a88
call fcn.00452a10
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, eax
dec edx
je 0x45788f
dec edx
je 0x4578a1
dec edx
je 0x4578b3
dec edx
je 0x4578c5
jmp 0x4578f7
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, 0x457ab4
call fcn.00452b20
jmp 0x457916
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, 0x457acc
call fcn.00452a68
jmp 0x457916
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, 0x457ae0
call fcn.00452a68
jmp 0x457916
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.004062c0
test eax, eax
je 0x457916
lea eax, [ebp - 0x70]
xor edx, edx
mov dl, bl
mov edx, dword [edx*4 + 0x498af0]
call fcn.0040352c
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00452b20
jmp 0x457916
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
lea edx, [ebp - 0x88]
xor ecx, ecx
mov eax, 0x457af8
call fcn.00452a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457952
cmp dword [ebp - 0x10], 0
je 0x457932
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UnmapViewOfFile
cmp dword [ebp - 0xc], 0
je 0x457941
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