Function at 0x43f76f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x30]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x1c]
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x40], esi
call fcn.00402eb0
push 0x44
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.004685d0
add esp, 0xc
mov dword [ebp - 0xa4], 0x44
cmp byte [ebp + 0x10], 0
jne 0x43f7e9
or dword [ebp - 0x78], 1
xor eax, eax
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x9c]
test esi, esi
push 0
cmovne eax, esi
and dword [ebp - 0x28], 0
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x28]
push edi
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x43f81a
or esi, 0x400
xor eax, eax
lea edi, [ebp - 0x60]
cmp dword [ebx + 0x14], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x43f82d
mov edx, dword [ebx]
jmp 0x43f82f
mov edx, ebx
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x60]
push eax
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
xor eax, eax
cmp dword [ebp - 0x20], eax
push 0
cmovne eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp + 0x20]
push esi
movzx eax, al
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
push edx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
je 0x43f883
push dword [ebp - 0x28]
call sub.USERENV.dll_DestroyEnvironmentBlock
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x43f940
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x43f8ed
call fcn.0040a7c0
cmp eax, 3
jge 0x43f8ed
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x43f8dc
cmp dword [ebp - 0x20], 0
je 0x43f8dc
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
push esi
push ebx
push eax
push dword [ebp - 0x20]
call fcn.0043f6e7
add esp, 0x18
movzx esi, al
jmp 0x43f8e9
push 0xe9
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x43f940
call fcn.0040ae90
cmp eax, 2
jg 0x43f929
xor ebx, ebx
inc ebx
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x215
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0x15c]
call fcn.0040b720
add eax, 0x10
push str.Failed_to_launch_a_process_with_a_user_token
push eax
call fcn.00405180
pop ecx
pop ecx
jmp 0x43f92c
mov ebx, dword [ebp - 0x2c]
test bl, 1
je 0x43f93c
lea ecx, [ebp - 0x15c]
call fcn.0040b780
xor bl, bl
jmp 0x43f989
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x50]
call fcn.00419c20
lea ecx, [ebp - 0x50]
call fcn.00419c90
test al, al
jne 0x43f95d
call fcn.004199c0
lea ecx, [ebp - 0x50]
call fcn.00419db0
mov ecx, dword [ebp - 0x30]
push eax
call fcn.004067b0
lea ecx, [ebp - 0x50]
call fcn.00419e10
mov ecx, dword [ebp - 0x38]
push eax
call fcn.004067b0
lea ecx, [ebp - 0x50]
mov bl, 1
call fcn.00419c50
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004047d0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467f35
mov esp, ebp
pop ebp
ret