Function at 0x473860
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x4c], esi
xorps xmm0, xmm0
movq qword [ebp - 0x54], xmm0
test ebx, ebx
je 0x4739b6
xor eax, eax
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
call fcn.00472630
cmp eax, 0x68
jl 0x4738e3
test bl, 3
je 0x4738e3
push 0xf
push str.S:_ML__NW___LW_
lea ecx, [ebp - 0x28]
call fcn.0040cd80
push 3
push 0x569ab0
lea ecx, [ebp - 0x28]
call fcn.0040cd80
push 0xc
push str._D__GA___NU_
lea ecx, [ebp - 0x28]
call fcn.0040cd80
push 0xc
push str._D__GA___AN_
lea ecx, [ebp - 0x28]
call fcn.0040cd80
lea eax, [ebp - 0x48]
push eax
call fcn.00472f30
add esp, 4
cmp dword [ebp - 0x38], 0
mov byte [ebp - 4], 1
je 0x47395b
push 9
push str._A__GA___
lea ecx, [ebp - 0x28]
call fcn.0040cd80
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040cd80
push 1
push 0x5699f4
lea ecx, [ebp - 0x28]
call fcn.0040cd80
call fcn.00472630
cmp eax, 0x6a
jl 0x473979
test bl, 2
je 0x473979
push 0xc
push str._A__GA___AC_
lea ecx, [ebp - 0x28]
call fcn.0040cd80
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
push 0
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.00408e50
lea ecx, [ebp - 0x28]
call fcn.00408e50
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4739b4
lea esi, [ebp - 0x54]
jmp 0x4739b6
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
sub ecx, 0
je 0x473ac3
sub ecx, 1
je 0x4739da
mov eax, 8
jmp 0x473bc1
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004730e0
add esp, 8
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x473a14
lea esi, [eax + 4]
lea ecx, [ebp - 0x48]
jmp 0x473bba
cmp dword [ebp + 8], 0
je 0x473ab4
cmp dword [edi + 0x8c], 0
je 0x473ab4
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push 0x190000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x473a6c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x473a6c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov dword [ebp - 0x2c], 0
cmp ebx, 0xffffffff
je 0x473ab4
mov esi, dword [edi + 0x8c]
lea eax, [ebp - 0x2c]
push eax
push ebx
mov ecx, esi
call dword [0x5677a4]
call esi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x473ab4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp + 8], eax
je 0x473ab4
cmp dword [ebp - 0x30], eax
je 0x473ab4
mov esi, 0xb
lea ecx, [ebp - 0x48]
jmp 0x473bba
lea ecx, [ebp - 0x48]
call fcn.00408e50
xor eax, eax
jmp 0x473bc1
mov bl, byte [ebp + 0xc]
push 0
push 0
push 1
push 0
mov byte [edi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
test eax, eax
jne 0x473ae8
mov eax, 2
jmp 0x473bc1
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004730e0
add esp, 8
lea ecx, [edi + 0x70]
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x473b1a
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00408740
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push 0x3e8
push 0
push 0
push 1
push 0xe
push 0x80003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x473b57
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x50], 0
cmp dword [edi + 0x2c], 0xffffffff
jne 0x473b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 5]
neg esi
sbb esi, esi
add esi, 3
jmp 0x473bb7
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test bl, bl
je 0x473baf
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push fcn.00473170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x34], eax
test eax, eax
jne 0x473ba3
lea esi, [eax + 2]
jmp 0x473bb7
lea ecx, [ebp - 0x28]
call fcn.00408e50
xor eax, eax
jmp 0x473bc1
push edi
call fcn.00473170
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00408e50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret 0xc