Function at 0x4115f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4249c0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100ac
call fcn.004234b0
mov eax, dword [0x42d520]
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.00415120
add esp, 0xc
mov eax, 0x464840
mov dword [ebp - 0x1001c], esi
cmp esi, dword [eax + 0x54]
jae 0x411973
add eax, 0x50
mov dword [ebp - 0x10034], eax
cmp esi, dword [eax + 4]
jb 0x411696
push 0x80070057
call fcn.004070f0
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 0x41195b
push 0x10000
lea edx, [ebp - 0x10014]
push 0
push edx
call fcn.00415120
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 0x4116d4
mov eax, dword [0x429d58]
mov dword [edi], eax
test ecx, ecx
je 0x41195b
mov eax, dword [ebx + 4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4116f4
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 0x411710
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 0x411955
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411740
mov edx, dword [0x429d58]
mov dword [edi], edx
test ecx, ecx
je 0x411955
lea eax, [ebp - 0x10014]
add eax, 0xfffffffe
lea edx, [eax + 2]
jmp 0x411770
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x411770
mov ecx, dword [0x429d5c]
mov dword [eax], ecx
mov ecx, dword [str.start]
mov dword [eax + 4], ecx
mov ecx, dword [0x429d64]
mov dword [eax + 8], ecx
mov ecx, dword [0x429d68]
mov dword [eax + 0xc], ecx
test edx, edx
je 0x411955
cmp dword [ebp + 8], 0
je 0x4118c5
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 0x411899
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 0x411886
push 0x40
lea edx, [ebp - 0x10074]
push 0
push edx
call fcn.00415120
mov eax, dword [ebp - 0x1001c]
mov ecx, dword [ebp - 0x10034]
add esp, 0xc
mov dword [ebp - 0x10078], 0x44
call fcn.00411a60
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 0x411854
inc dword [ebp - 0x10018]
mov eax, dword [esi + 4]
test eax, eax
je 0x41186e
cmp eax, 0xffffffff
je 0x41186e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x411886
cmp eax, 0xffffffff
je 0x411886
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [edi]
test eax, eax
je 0x411899
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [edi], 0
mov eax, dword [ebx]
test eax, eax
je 0x411955
cmp eax, 0xffffffff
je 0x411955
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1001c]
mov dword [ebx], 0
inc esi
jmp 0x41166a
push 0x40
lea eax, [ebp - 0x100b8]
push 0
push eax
call fcn.00415120
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 0x41191f
inc dword [ebp - 0x10018]
mov eax, dword [edi + 4]
test eax, eax
je 0x411939
cmp eax, 0xffffffff
je 0x411939
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x411951
cmp eax, 0xffffffff
je 0x411951
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
test esi, esi
jne 0x411973
mov esi, dword [ebp - 0x1001c]
inc esi
jmp 0x41166a
mov ecx, dword [ebp - 0x10018]
mov eax, 0x464840
cmp ecx, dword [eax + 0x54]
je 0x41198d
cmp dword [ebp + 8], 0
jne 0x411997
test ecx, ecx
jle 0x411997
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.00412e2a
mov esp, ebp
pop ebp
ret 8