Function at 0x417040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59317d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5fcffc]
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
mov dword [ebp - 4], 2
or ebx, 0xffffffff
mov dword [ebp - 0x20], 0
nop dword [eax]
mov eax, dword [ebp + 0x10]
mov edx, 0x5daa4c
mov ecx, eax
nop word [eax + eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4170b6
test si, si
je 0x4170b2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4170b6
add ecx, 4
add edx, 4
test si, si
jne 0x417090
xor ecx, ecx
jmp 0x4170bb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x417157
mov ecx, 0x5d8d04
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4170ee
test dx, dx
je 0x4170ea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4170ee
add eax, 4
add ecx, 4
test dx, dx
jne 0x4170c8
xor eax, eax
jmp 0x4170f3
sbb eax, eax
or eax, 1
test eax, eax
je 0x417157
lea eax, [ebp + 0x10]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
push str.schtasks__run__tn
push eax
call fcn.00422650
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00420a30
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41714e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
jmp 0x4171b4
push 0x5daa48
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00422a00
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420cc0
add esp, 0x18
push 1
push 0
push 0
push dword [eax]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4171ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4171cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp + 0xc]
push ecx
mov ebx, esp
mov dword [ebp - 0x24], ebx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x4171ff
cmp ecx, dword [esi - 0x10]
jne 0x4171ff
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x41722d
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x41733b
mov ecx, dword [esi - 0xc]
lea eax, [edi + 0x10]
mov dword [edi + 4], ecx
mov ecx, esi
mov edx, dword [esi - 0xc]
inc edx
push edx
push ecx
push edx
push eax
call fcn.00403400
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebx], eax
call fcn.00411c70
cmp eax, 1
je 0x417251
mov esi, dword [ebp - 0x20]
mov ebx, 0xffffffff
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 3
jl 0x417080
push ecx
mov dword [ebp - 0x1c], esp
mov ebx, 1
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x41727d
cmp ecx, dword [esi - 0x10]
jne 0x41727d
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x4172a9
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x41733b
mov ecx, dword [esi - 0xc]
lea eax, [edi + 0x10]
mov dword [edi + 4], ecx
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
push edx
push eax
call fcn.00403400
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 0x10]
mov dword [ecx], eax
call fcn.00411c70
xor ecx, ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
test eax, eax
cmove ebx, ecx
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4172de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4172fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41731b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0056eb08
mov esp, ebp
pop ebp
ret 0xc
call fcn.004033f0
int3