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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5303e9
mov eax, dword fs:[0]
push eax
sub esp, 0xb8c
mov eax, dword [0x58deec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0xb38]
call fcn.00405830
mov eax, dword [ebp - 0xb38]
push 0x5c
push eax
mov byte [ebp - 4], 1
call fcn.0051756c
add esp, 8
cmp eax, ebx
je 0x40cc66
sub eax, dword [ebp - 0xb38]
cmp eax, ebx
jg 0x40cd39
lea ecx, [ebp - 0x334]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, ebx
jle 0x40cc9c
lea edx, [ebp - 0x334]
push edx
lea eax, [ebp - 0xb38]
push 0x541178
push eax
call fcn.00401f90
add esp, 0xc
jmp 0x40cd82
lea ecx, [ebp - 0x230]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x230]
push edx
mov esi, eax
lea eax, [ebp - 0xb38]
push 0x541178
push eax
call fcn.00401f90
add esp, 0xc
cmp esi, 0x104
ja 0x40ccdb
cmp esi, ebx
jne 0x40cd82
push ebx
push ebx
push 0x54164c
call fcn.00421121
mov eax, dword [ebp - 0xb38]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40cf9f
push eax
lea ecx, [ebp - 0xb40]
push ecx
lea ecx, [ebp - 0xb38]
call fcn.00408c40
push eax
lea ecx, [ebp - 0xb38]
mov byte [ebp - 4], 2
call fcn.004056a0
mov eax, dword [ebp - 0xb40]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cd82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xb44]
push ecx
push 0x20006
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40ce97
call fcn.0041e837
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40cdc1
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xb40], eax
mov ecx, dword [ebp - 0xb38]
push ecx
lea edx, [ebp - 0xb40]
push str._sclientClient.exe
push edx
mov byte [ebp - 4], 3
call fcn.00401f90
mov eax, dword [str._RUNASADMIN_WINXPSP3]
mov ecx, dword [0x5415dc]
mov edx, dword [0x5415e0]
mov edi, dword [ebp - 0xb40]
mov dword [ebp - 0x28], eax
mov eax, dword [0x5415e4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x5415e8]
mov dword [ebp - 0x20], edx
mov dx, word [0x5415ec]
add edi, 0xfffffff0
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call fcn.00405390
mov ecx, dword [ebp - 0xb44]
add esp, 0x10
push 0x16
lea esi, [eax + 0x10]
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0xb44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce97
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [0x5892a8]
mov ecx, dword [ebp + 8]
push ecx
shl eax, 4
mov edx, dword [eax + 0x592dc4]
mov eax, dword [eax + 0x592dc0]
push edx
push eax
lea ecx, [ebp - 0xb34]
push str..clientclient.exe__s__s__k_192198425__t_28665689__s
push ecx
call fcn.005175ec
push 0x40
xor eax, eax
lea edx, [ebp - 0xb94]
push ebx
push edx
mov dword [ebp - 0xb54], ebx
mov dword [ebp - 0xb50], eax
mov dword [ebp - 0xb4c], eax
mov dword [ebp - 0xb48], eax
call fcn.005160e0
add esp, 0x20
lea ecx, [ebp - 0xb54]
push ecx
lea edx, [ebp - 0xb98]
push edx
push str..client
push ebx
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0xb66], ax
push ebx
lea eax, [ebp - 0xb34]
push eax
push ebx
mov dword [ebp - 0xb98], 0x44
mov dword [ebp - 0xb94], ebx
mov dword [ebp - 0xb90], ebx
mov dword [ebp - 0xb8c], ebx
mov dword [ebp - 0xb6c], ebx
mov dword [ebp - 0xb64], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, dword [ebp - 0xb38]
setne byte [ebp - 0xb39]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xb39]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005156a7
mov esp, ebp
pop ebp
ret