Function at 0x404fb0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440839
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x451040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x138], ecx
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x134]
xorps xmm0, xmm0
mov dword [ebp - 0xe8], esi
push 1
push 0x44b8a0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x78], 0x44
movups xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
call fcn.00403800
mov dword [ebp - 4], 0
mov ecx, edi
cmp dword [edi + 0x14], 0xf
jbe 0x405072
mov ecx, dword [edi]
mov eax, dword [ebp - 0x120]
mov edi, dword [edi + 0x10]
mov edx, dword [ebp - 0x124]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x4050c3
cmp dword [ebp - 0x120], 0xf
lea esi, [ebp - 0x134]
lea eax, [edi + edx]
cmova esi, dword [ebp - 0x134]
add esi, edx
mov dword [ebp - 0x124], eax
push esi
call fcn.00421e90
mov byte [esi + edi], 0
lea eax, [ebp - 0x134]
mov esi, dword [ebp - 0xe8]
add esp, 0xc
jmp 0x4050dc
mov byte [ebp - 0xe4], 0
lea ecx, [ebp - 0x134]
push dword [ebp - 0xe4]
push edi
call fcn.00403a60
mov dword [ebp - 0x10c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x11c], xmm0
mov dword [ebp - 0x108], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x11c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x10c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x108]
mov eax, edx
mov ecx, dword [ebp - 0x10c]
sub eax, ecx
cmp eax, 1
jb 0x405162
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x11c]
cmova eax, dword [ebp - 0x11c]
mov word [eax + ecx], 0x22
lea eax, [ebp - 0x11c]
jmp 0x405183
push 1
push 0x44b8a0
mov byte [ebp - 0xe4], 0
lea ecx, [ebp - 0x11c]
push dword [ebp - 0xe4]
push 1
call fcn.00403a60
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x108]
cmp ecx, 0xf
jbe 0x4051f8
mov edx, dword [ebp - 0x11c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4051ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40560d
push ecx
push edx
call fcn.00408ca4
add esp, 8
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0xf
mov byte [ebp - 0x11c], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x120]
cmp ecx, 0xf
jbe 0x405251
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405247
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40560d
push ecx
push edx
call fcn.00408ca4
add esp, 8
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
mov dword [ebp - 0xe4], ecx
test ecx, ecx
je 0x405435
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x405612
cmp dword [esi + 0x14], 0xf
jbe 0x40529b
mov esi, dword [esi]
mov dword [ebp - 0xe8], esi
lea edx, [ecx + 1]
mov dword [ebp - 0xf4], 0
mov esi, 0xf
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], edx
xorps xmm0, xmm0
lea edi, [ebp - 0x104]
movups xmmword [ebp - 0x104], xmm0
cmp edx, esi
jbe 0x40535d
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x405317
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.00408c74
add esp, 4
test eax, eax
je 0x405621
mov ecx, dword [ebp - 0xe4]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0xec]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x405357
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x405338
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x405617
jmp 0x4052ef
test eax, eax
je 0x405355
push eax
call fcn.00408c74
mov ecx, dword [ebp - 0xe4]
add esp, 4
mov edx, dword [ebp - 0xec]
mov edi, eax
jmp 0x405357
xor edi, edi
mov dword [ebp - 0x104], edi
push ecx
push dword [ebp - 0xe8]
lea eax, [edi + 1]
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xf0], esi
push eax
mov byte [edi], 0x20
call fcn.00421e90
mov eax, dword [ebp - 0xec]
add esp, 0xc
mov byte [edi + eax], 0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x104]
cmp dword [ebp - 0xf0], 0xf
mov edi, dword [ebp - 0x104]
mov eax, dword [ebp - 0x18]
cmova edx, edi
mov esi, dword [ebp - 0x1c]
sub eax, esi
mov ecx, dword [ebp - 0xf4]
push ecx
push edx
cmp ecx, eax
ja 0x4053df
cmp dword [ebp - 0x18], 0xf
lea eax, [esi + ecx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
add esi, eax
push esi
call fcn.00421e90
mov eax, dword [ebp - 0xf4]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4053fb
mov byte [ebp - 0xe4], 0
push dword [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403a60
mov edi, dword [ebp - 0x104]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xf0]
cmp eax, 0xf
jbe 0x405435
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40542b
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405621
push ecx
push edi
call fcn.00408ca4
add esp, 8
mov esi, dword [ebp - 0x138]
lea eax, [ebp - 0xdc]
push 0
push esi
push eax
mov dword [ebp - 0xdc], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x405469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.CreateEnvironmentBlock_error__code:
jmp 0x40557b
mov edx, str.runProgAsCurUser__command:
mov ecx, 0x452d80
call fcn.004030d0
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.00408760
add esp, 4
push eax
call fcn.00403370
add esp, 4
lea eax, [ebp - 0xd8]
push 0x50
push 0
push eax
call fcn.00421cf0
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.00405d60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
mov eax, dword [ebp - 0x1c]
cmova ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
push ecx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00406b60
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 4
call fcn.00405c90
cmp dword [ebp - 0xf0], 7
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push dword [ebp - 0xdc]
lea eax, [ebp - 0x104]
cmova eax, dword [ebp - 0x104]
push 0x430
push 0
push 0
push 0
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ecx, dword [ebp - 0xf0]
mov esi, eax
cmp ecx, 7
jbe 0x40556c
mov edx, dword [ebp - 0x104]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405562
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40561c
push ecx
push edx
call fcn.00408ca4
add esp, 8
test esi, esi
jne 0x4055a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.CreateProcessAsUser_error__code:
mov ecx, 0x452d80
mov esi, eax
call fcn.004030d0
push esi
mov ecx, eax
call fcn.00405830
push eax
call fcn.00403370
add esp, 4
mov byte [ebp - 0xdd], 0
jmp 0x4055b9
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x4055b2
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov byte [ebp - 0xdd], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4055e9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4055df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405621
push ecx
push edx
call fcn.00408ca4
add esp, 8
mov al, byte [ebp - 0xdd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408c66
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00425081
call fcn.004012e0
call fcn.00401210
call fcn.00425081
call fcn.00425081
int3