Function at 0x4109e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4238c0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100ac
call fcn.004225f0
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.00414260
add esp, 0xc
mov eax, 0x463410
mov dword [ebp - 0x1001c], esi
cmp esi, dword [eax + 0x54]
jae 0x410d63
add eax, 0x50
mov dword [ebp - 0x10034], eax
cmp esi, dword [eax + 4]
jb 0x410a86
push 0x80070057
call fcn.00407110
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 0x410d4b
push 0x10000
lea edx, [ebp - 0x10014]
push 0
push edx
call fcn.00414260
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 0x410ac4
mov eax, dword [0x428e08]
mov dword [edi], eax
test ecx, ecx
je 0x410d4b
mov eax, dword [ebx + 4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410ae4
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 0x410b00
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 0x410d45
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x410b30
mov edx, dword [0x428e08]
mov dword [edi], edx
test ecx, ecx
je 0x410d45
lea eax, [ebp - 0x10014]
add eax, 0xfffffffe
lea edx, [eax + 2]
jmp 0x410b60
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x410b60
mov ecx, dword [0x428e0c]
mov dword [eax], ecx
mov ecx, dword [str.start]
mov dword [eax + 4], ecx
mov ecx, dword [0x428e14]
mov dword [eax + 8], ecx
mov ecx, dword [0x428e18]
mov dword [eax + 0xc], ecx
test edx, edx
je 0x410d45
cmp dword [ebp + 8], 0
je 0x410cb5
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 0x410c89
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 0x410c76
push 0x40
lea edx, [ebp - 0x10074]
push 0
push edx
call fcn.00414260
mov eax, dword [ebp - 0x1001c]
mov ecx, dword [ebp - 0x10034]
add esp, 0xc
mov dword [ebp - 0x10078], 0x44
call fcn.00410e50
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 0x410c44
inc dword [ebp - 0x10018]
mov eax, dword [esi + 4]
test eax, eax
je 0x410c5e
cmp eax, 0xffffffff
je 0x410c5e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x410c76
cmp eax, 0xffffffff
je 0x410c76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [edi]
test eax, eax
je 0x410c89
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [edi], 0
mov eax, dword [ebx]
test eax, eax
je 0x410d45
cmp eax, 0xffffffff
je 0x410d45
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1001c]
mov dword [ebx], 0
inc esi
jmp 0x410a5a
push 0x40
lea eax, [ebp - 0x100b8]
push 0
push eax
call fcn.00414260
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 0x410d0f
inc dword [ebp - 0x10018]
mov eax, dword [edi + 4]
test eax, eax
je 0x410d29
cmp eax, 0xffffffff
je 0x410d29
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x410d41
cmp eax, 0xffffffff
je 0x410d41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
test esi, esi
jne 0x410d63
mov esi, dword [ebp - 0x1001c]
inc esi
jmp 0x410a5a
mov ecx, dword [ebp - 0x10018]
mov eax, 0x463410
cmp ecx, dword [eax + 0x54]
je 0x410d7d
cmp dword [ebp + 8], 0
jne 0x410d87
test ecx, ecx
jle 0x410d87
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.00412123
mov esp, ebp
pop ebp
ret 8