Function at 0x47da50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push fcn.00477a10
lea ecx, [ebp - 4]
lea eax, [ebp + 4]
add eax, 0xfffffffc
push ecx
push eax
call fcn.00475ff0
push 0x44
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00594c60
mov eax, dword fs:[0x2c]
add esp, 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x44
mov ecx, 1
movups xmmword [ebp - 0x20], xmm0
mov esi, dword [eax]
mov eax, dword [ebp + 0x1c]
lea edi, [esi + 0x1600]
neg eax
movq qword [edi], xmm0
mov dword [ebp - 0x10], esi
sbb eax, eax
mov dword [ebp - 0xc], edi
and eax, 5
mov dword [edi + 8], 0
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
test eax, eax
je 0x47db80
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], 0
push eax
call fcn.00492360
mov edx, dword [ebp + 0x1c]
add esp, 8
xor esi, esi
mov eax, dword [edx]
test eax, eax
je 0x47db0f
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47daf4
sub eax, ebx
add edx, 4
sar eax, 1
inc eax
add esi, eax
mov eax, dword [edx]
test eax, eax
jne 0x47daf1
push esi
push dword [ebp - 8]
call fcn.00477aa0
mov esi, dword [ebp + 0x1c]
add esp, 8
xor ebx, ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x47db6e
mov edi, dword [ebp - 8]
nop dword [eax]
mov eax, dword [edi]
lea edx, [eax + ebx*2]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x47db35
mov ecx, dword [esi]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47db50
sub ecx, edx
add esi, 4
sar ecx, 1
inc ecx
add ebx, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x47db30
mov edi, dword [ebp - 0xc]
lea eax, [ebp + 0x1c]
push eax
call fcn.00492320
mov ecx, dword [ebp - 0x38]
add esp, 4
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x47dbd4
or ecx, 0x100
push 0
push ebx
mov dword [ebp - 0x38], ecx
call fcn.0047de20
add esp, 8
test eax, eax
je 0x47dbbd
lea eax, [esi + 0x1610]
push eax
push str.redir_failed:__s
push 0x360003
call fcn.00479a10
add esp, 0xc
jmp 0x47dcf6
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x1604]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1608]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
je 0x47dc6e
mov dword [ebp - 0x5c], 0x5d5084
test eax, eax
je 0x47dc03
push eax
lea eax, [ebp + 4]
add eax, 0xfffffffc
push eax
call fcn.004766b0
add esp, 8
mov eax, dword [eax]
mov dword [ebp + 0x1c], eax
jmp 0x47dc0a
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov esi, dword [eax]
lea eax, [ebp + 4]
add eax, 0xfffffffc
push eax
call fcn.004766b0
add esp, 8
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp + 0x1c]
push esi
push 0x400
push dword [ebp + 0x18]
push 0
push 0
push dword [eax]
push 0
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x47dcea
push str.CreateProcessAsUser_failed:__m
push 0x360003
call fcn.00479a10
add esp, 8
jmp 0x47dcf6
test eax, eax
je 0x47dc89
push eax
lea eax, [ebp + 4]
add eax, 0xfffffffc
push eax
call fcn.004766b0
add esp, 8
mov eax, dword [eax]
mov dword [ebp + 0x1c], eax
jmp 0x47dc90
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov esi, dword [eax]
lea eax, [ebp + 4]
add eax, 0xfffffffc
push eax
call fcn.004766b0
add esp, 8
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp + 0x1c]
push esi
push 0x400
push dword [ebp + 0x18]
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x47dcea
push str.CreateProcess_failed:__m
push 0x360003
call fcn.00479a10
add esp, 8
jmp 0x47dcf6
lea eax, [ebp - 0x1c]
push eax
call fcn.00498940
add esp, 4
test ebx, ebx
je 0x47dd11
mov esi, 3
nop
push edi
call fcn.00498940
add esp, 4
add edi, 4
sub esi, 1
jne 0x47dd00
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret