Function at 0x410a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4238f0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100ac
call fcn.00422620
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor esi, esi
push 0xfffe
mov dword [ebp - 0x10030], ecx
mov dword [ebp - 0x1002c], eax
lea ecx, [ebp - 0x10012]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov dword [ebp - 0x10024], edx
mov dword [ebp - 0x10020], esi
mov dword [ebp - 0x10018], esi
mov word [ebp - 0x10014], ax
call fcn.00414290
add esp, 0xc
mov eax, 0x463510
mov dword [ebp - 0x1001c], esi
cmp esi, dword [eax + 0x54]
jae 0x410d93
add eax, 0x50
mov dword [ebp - 0x10034], eax
cmp esi, dword [eax + 4]
jb 0x410ab6
push 0x80070057
call fcn.004070e0
mov eax, dword [eax]
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*4 + 4]
cmp dword [ecx - 0xc], 0
lea ebx, [eax + edx*4]
mov dword [ebp - 0x10028], ebx
jle 0x410d7b
push 0x10000
lea edx, [ebp - 0x10014]
push 0
push edx
call fcn.00414290
lea edi, [ebp - 0x10014]
add esp, 0xc
add edi, 0xfffffffe
lea ecx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x410af4
mov eax, dword [0x428e10]
mov dword [edi], eax
test ecx, ecx
je 0x410d7b
mov eax, dword [ebx + 4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410b14
lea edi, [ebp - 0x10014]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [edi + 2]
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x410b30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x410d75
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x410b60
mov edx, dword [0x428e10]
mov dword [edi], edx
test ecx, ecx
je 0x410d75
lea eax, [ebp - 0x10014]
add eax, 0xfffffffe
lea edx, [eax + 2]
jmp 0x410b90
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x410b90
mov ecx, dword [0x428e14]
mov dword [eax], ecx
mov ecx, dword [str.start]
mov dword [eax + 4], ecx
mov ecx, dword [0x428e1c]
mov dword [eax + 8], ecx
mov ecx, dword [0x428e20]
mov dword [eax + 0xc], ecx
test edx, edx
je 0x410d75
cmp dword [ebp + 8], 0
je 0x410ce5
mov edx, dword [ebp - 0x10028]
mov ebx, dword [ebp - 0x1002c]
mov eax, dword [edx + 8]
push ebx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x410cb9
mov ecx, dword [ebx]
mov edi, dword [ebp - 0x10030]
push 0
push ecx
push edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x410ca6
push 0x40
lea edx, [ebp - 0x10074]
push 0
push edx
call fcn.00414290
mov eax, dword [ebp - 0x1001c]
mov ecx, dword [ebp - 0x10034]
add esp, 0xc
mov dword [ebp - 0x10078], 0x44
call fcn.00410e80
mov esi, dword [ebp - 0x10024]
mov edx, dword [edi]
mov eax, dword [eax + 4]
push esi
lea ecx, [ebp - 0x10078]
push ecx
push 0
push edx
mov edx, dword [ebx]
push 0x400
push 0
push 0
push 0
lea ecx, [ebp - 0x10014]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x410c74
inc dword [ebp - 0x10018]
mov eax, dword [esi + 4]
test eax, eax
je 0x410c8e
cmp eax, 0xffffffff
je 0x410c8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x410ca6
cmp eax, 0xffffffff
je 0x410ca6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [edi]
test eax, eax
je 0x410cb9
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [edi], 0
mov eax, dword [ebx]
test eax, eax
je 0x410d75
cmp eax, 0xffffffff
je 0x410d75
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1001c]
mov dword [ebx], 0
inc esi
jmp 0x410a8a
push 0x40
lea eax, [ebp - 0x100b8]
push 0
push eax
call fcn.00414290
mov edi, dword [ebp - 0x10024]
mov ecx, dword [ebp - 0x10028]
add esp, 0xc
push edi
lea edx, [ebp - 0x100bc]
push edx
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x100bc], 0x44
mov eax, dword [ecx + 4]
push 0
lea ecx, [ebp - 0x10014]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x410d3f
inc dword [ebp - 0x10018]
mov eax, dword [edi + 4]
test eax, eax
je 0x410d59
cmp eax, 0xffffffff
je 0x410d59
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x410d71
cmp eax, 0xffffffff
je 0x410d71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
test esi, esi
jne 0x410d93
mov esi, dword [ebp - 0x1001c]
inc esi
jmp 0x410a8a
mov ecx, dword [ebp - 0x10018]
mov eax, 0x463510
cmp ecx, dword [eax + 0x54]
je 0x410dad
cmp dword [ebp + 8], 0
jne 0x410db7
test ecx, ecx
jle 0x410db7
mov dword [ebp - 0x10020], 1
mov eax, dword [ebp - 0x10020]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412153
mov esp, ebp
pop ebp
ret 8