Function at 0x41d960
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 0x4c97c1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8b8
mov eax, dword [0x505034]
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 - 0x890], edx
mov edi, ecx
mov dword [ebp - 0x828], edi
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x898], eax
mov eax, dword [ebx + 0x10]
push 0x44
mov dword [ebp - 0x894], eax
lea eax, [ebp - 0x878]
push 0
push eax
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x88c], 0
mov dword [ebp - 0x81c], 0
call fcn.004928b0
add esp, 0xc
mov dword [ebp - 0x878], 0x44
mov eax, 0xa
xorps xmm0, xmm0
mov word [ebp - 0x848], ax
lea eax, [ebp - 0x818]
movups xmmword [ebp - 0x888], xmm0
push 0x800
push 0
push eax
call fcn.004928b0
mov eax, dword [ebp - 0x890]
add esp, 0xc
test eax, eax
je 0x41da49
push eax
push edi
lea eax, [ebp - 0x818]
push str.__s___s
push eax
call fcn.0041faa0
add esp, 0x10
jmp 0x41da5e
push edi
lea eax, [ebp - 0x818]
push 0x4e6ee8
push eax
call fcn.0041faa0
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x8a0], 0
xor eax, eax
mov dword [ebp - 0x89c], 7
mov word [ebp - 0x8b0], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41da80
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x8b0]
call fcn.00415170
lea edx, [ebp - 0x8b0]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c8]
call fcn.00465cc0
cmp dword [eax + 0x14], 8
jb 0x41dabc
mov eax, dword [eax]
lea ecx, [ebp - 0x888]
push ecx
lea ecx, [ebp - 0x878]
push ecx
push eax
push dword [ebp - 0x894]
lea eax, [ebp - 0x818]
push 0x414
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0x8b4]
mov dword [ebp - 0x894], eax
cmp edx, 8
jb 0x41db30
mov ecx, dword [ebp - 0x8c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41db26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41de38
push edx
push ecx
call fcn.00479e95
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x89c]
mov dword [ebp - 0x8b8], 0
mov dword [ebp - 0x8b4], 7
mov word [ebp - 0x8c8], ax
cmp edx, 8
jb 0x41db94
mov ecx, dword [ebp - 0x8b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41db8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41de38
push edx
push ecx
call fcn.00479e95
add esp, 8
cmp dword [ebp - 0x894], 0
je 0x41dd89
push dword [ebp - 0x880]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
xor edi, edi
mov dword [ebp - 0x890], edi
test esi, esi
je 0x41dbcf
push str.Global_aswSetupGuiShown_0x02fa47cc9a31afba
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x890], eax
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x41dc81
push 0x14d
push dword [ebp - 0x890]
call edi
cmp eax, 0x102
jne 0x41dc26
mov esi, dword [ebp - 0x890]
push 0
push dword [ebp - 0x888]
call edi
test eax, eax
je 0x41dc20
push 0x14d
push esi
call edi
cmp eax, 0x102
je 0x41dc03
mov esi, dword [ebp - 0x820]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41dc75
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x41dc4b
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x40]
mov dword [esi + 0x48], 0
push 0x2710
push eax
call edi
cmp eax, 0x102
jne 0x41dc65
push 1
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
push dword [ebp - 0x890]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41dcd4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41dcd4
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x41dcaa
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x40]
mov dword [esi + 0x48], 0
push 0x2710
push eax
call edi
cmp eax, 0x102
jne 0x41dcc4
push 1
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
push 0xffffffffffffffff
push dword [ebp - 0x888]
call edi
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x41dd71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x824]
xorps xmm0, xmm0
mov dword [ebp - 0x88c], esi
movlpd qword [ebp - 0x824], xmm0
call fcn.004158a0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x824]
test ecx, ecx
je 0x41dd46
push esi
push dword [ebp - 0x828]
push str.Cannot_get_exit_code_of_process__s__code_0x_x_
push 0x50b654
push 7
push ecx
call fcn.00417530
add esp, 0x18
mov edi, dword [ebp - 0x820]
test edi, edi
je 0x41dd71
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x41dd71
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x41dd71
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push dword [ebp - 0x888]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x884]
call esi
jmp 0x41de00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x82c]
xorps xmm0, xmm0
mov dword [ebp - 0x88c], esi
movlpd qword [ebp - 0x82c], xmm0
call fcn.004158a0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x82c]
test eax, eax
je 0x41ddd5
push esi
push edi
push str.Error_creating_process__s__code_0x_x_
push 0x50b654
push 7
push eax
call fcn.00417530
add esp, 0x18
mov edi, dword [ebp - 0x828]
test edi, edi
je 0x41de06
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x41de00
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x41de00
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x88c]
mov ecx, dword [ebp - 0x898]
test ecx, ecx
je 0x41de18
mov eax, dword [ebp - 0x81c]
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.00479e61
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0049b19a
int3