Function at 0x413be0
Capabilities:
Create process on windows
Resume thread
Terminate thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed4fb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8b8
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x828], edx
mov esi, ecx
mov dword [ebp - 0x88c], esi
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x894], eax
mov eax, dword [ebx + 0x10]
push 0x44
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x878]
push 0
push eax
mov dword [ebp - 0x890], 0
mov dword [ebp - 0x830], 0
call fcn.004b23a0
add esp, 0xc
mov dword [ebp - 0x878], 0x44
mov eax, 0xa
xorps xmm0, xmm0
mov word [ebp - 0x848], ax
xor eax, eax
mov word [ebp - 0x818], ax
push 0x7fe
push eax
lea eax, [ebp - 0x816]
push eax
movups xmmword [ebp - 0x888], xmm0
call fcn.004b23a0
mov eax, dword [ebp - 0x828]
add esp, 0xc
test eax, eax
je 0x413ccb
push eax
push esi
lea eax, [ebp - 0x818]
push str.__s___s
push eax
call fcn.00415b30
add esp, 0x10
jmp 0x413ce0
push esi
lea eax, [ebp - 0x818]
push 0x5299e0
push eax
call fcn.00415b30
add esp, 0xc
sub esp, 8
mov ecx, esi
mov edx, esp
lea eax, [ecx + 2]
mov dword [edx], esi
mov dword [ebp - 0x828], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413cf2
sub ecx, dword [ebp - 0x828]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x8ac]
call fcn.0048b220
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x413d1e
mov eax, dword [eax]
lea ecx, [ebp - 0x888]
push ecx
lea ecx, [ebp - 0x878]
push ecx
push eax
push dword [ebp - 0x81c]
lea eax, [ebp - 0x818]
push 0x414
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x8ac]
mov esi, eax
call fcn.0040aa40
test esi, esi
je 0x413fbb
push dword [ebp - 0x880]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
xor esi, esi
test edi, edi
je 0x413d83
push str.Global_aswSetupGuiShown_0x02fa47cc9a31afba
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test esi, esi
je 0x413e2d
push 0x14d
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x413dd5
nop word [eax + eax]
push 0
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x413dd5
push 0x14d
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x413db0
cmp dword [edi + 0x40], 0
je 0x413e26
mov eax, dword [edi + 0x48]
test eax, eax
je 0x413df6
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x48], 0
push 0x2710
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x413e16
push 1
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x413e82
cmp dword [edi + 0x40], 0
je 0x413e82
mov eax, dword [edi + 0x48]
test eax, eax
je 0x413e52
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x48], 0
push 0x2710
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x413e72
push 1
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x40], 0
push 0xffffffffffffffff
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x830]
push eax
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x413f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [str.sfxsh]
mov esi, eax
mov eax, dword [0x529f2c]
mov dword [ebp - 0x820], 0x37314446
mov ecx, dword [ebp - 0x820]
movq qword [ebp - 0x8ac], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x824], 0x37434235
mov dword [ebp - 0x8a4], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x89c], ecx
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x890], esi
mov dword [ebp - 0x8a0], eax
mov dword [ebp - 0x898], 0x19
movlpd qword [ebp - 0x820], xmm0
call fcn.0040add0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x820]
test ecx, ecx
je 0x413f4b
push esi
push dword [ebp - 0x88c]
lea eax, [ebp - 0x8ac]
push str.Cannot_get_exit_code_of_process__s__code_0x_x_
push eax
push 7
call fcn.00413300
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x88c], ecx
test ecx, ecx
je 0x413f9e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x413f9e
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4f933c]
mov ecx, dword [ebp - 0x88c]
call esi
mov eax, dword [ebp - 0x88c]
lock xadd dword [eax + 8], edi
dec edi
jne 0x413f9e
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4f933c]
mov ecx, dword [ebp - 0x88c]
call esi
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4140ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [str.sfxsh]
mov esi, eax
mov eax, dword [0x529f2c]
mov dword [ebp - 0x820], 0x37314446
mov ecx, dword [ebp - 0x820]
movq qword [ebp - 0x8c4], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x8bc], eax
mov dword [ebp - 0x8b4], ecx
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x824], 0x37434235
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x890], esi
mov dword [ebp - 0x8b8], eax
mov dword [ebp - 0x8b0], 0x19
movlpd qword [ebp - 0x82c], xmm0
call fcn.0040add0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x82c]
test ecx, ecx
je 0x41405b
push esi
push dword [ebp - 0x88c]
lea eax, [ebp - 0x8c4]
push str.Error_creating_process__s__code_0x_x_
push eax
push 7
call fcn.00413300
mov ecx, dword [ebp - 0x828]
mov dword [ebp - 0x88c], ecx
test ecx, ecx
je 0x4140b4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4140b4
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4f933c]
mov ecx, dword [ebp - 0x88c]
call esi
mov eax, dword [ebp - 0x88c]
lock xadd dword [eax + 8], edi
dec edi
jne 0x4140ae
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4f933c]
mov ecx, dword [ebp - 0x88c]
call esi
mov esi, dword [ebp - 0x890]
mov ecx, dword [ebp - 0x894]
test ecx, ecx
je 0x4140c6
mov eax, dword [ebp - 0x830]
mov dword [ecx], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret