Function at 0x447c50
Capabilities:
Check os version
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x4846a0]
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 esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esi], 0xffffffff
call fcn.004267f0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c4], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], edi
jne 0x447eae
xor eax, eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1e0], 0xc
mov dword [ebp - 0x1d8], 1
mov dword [ebp - 0x1d0], edi
mov dword [ebp - 0x1cc], edi
mov byte [ebp - 4], 2
mov eax, dword [0x487e60]
cmp dword [eax - 0xc], edi
setne al
test al, al
je 0x447e4a
mov dword [ebp - 0x1c8], edi
lea ecx, [ebp - 0x1c8]
push ecx
push 0x20008
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [ebp - 0x1c8]
lea edx, [ebp - 0x1d4]
push edx
call fcn.00447140
mov edi, dword [eax]
add esp, 4
mov dword [ebp - 0x1ec], edi
mov dword [eax], 0
mov dword [ebp - 0x1c0], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1d4]
push eax
call fcn.0044ee8c
add esp, 4
lea ecx, [ebp - 0x1e8]
push edi
push ecx
call fcn.00447450
mov edi, dword [eax]
mov dword [eax], 0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1e8]
push edx
call fcn.0044ee8c
mov dword [ebp - 0x1dc], edi
mov eax, edi
add esp, 0xc
lea edi, [ebp - 0x1d0]
mov dword [ebp - 0x1d4], 0
call fcn.00448670
push 4
push str._EPM
lea ebx, [ebp - 0x1c4]
call fcn.00424980
push 0
call fcn.0044ee8c
mov eax, dword [ebp - 0x1ec]
add esp, 4
push eax
call fcn.0044ee8c
mov eax, dword [ebp - 0x1c8]
add esp, 4
test eax, eax
je 0x447dd7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x1c4]
mov edi, dword [ebp - 0x1cc]
lea ecx, [ebp - 0x1e0]
push ecx
push 0
push 0x400
push 0x400
push 0xff
push 6
push 3
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x447f79
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x447f79
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x447f79
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
jmp 0x447f79
push 0x11c
lea ecx, [ebp - 0x1b8]
push 0
push ecx
call fcn.004534e0
add esp, 0xc
lea edx, [ebp - 0x1b8]
push edx
mov dword [ebp - 0x1b8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1b4], 6
jb 0x447de3
lea eax, [ebp - 0x1e0]
push eax
call fcn.00447780
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1dc]
add esp, 4
lea edi, [ebp - 0x1d0]
call fcn.004486d0
jmp 0x447ddd
call fcn.004479d0
test al, al
je 0x447ecf
push 4
push str._EPM
lea ebx, [ebp - 0x1c4]
call fcn.00424980
mov ebx, dword [ebp - 0x1c4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ebx
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x447fed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x447f79
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x447f65
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push 0x3d
mov eax, str.Timeout_while_trying_to_connect_to_a_named_pipe__pipe_is_busy
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.00430450
push 0x192
push str.....CommonSourceADXBootstrapperClickTwice.DownloaderPipe.cpp
sub esp, 0x48
mov byte [ebp - 4], 6
mov dword [ebp - 0x1c0], esp
lea ebx, [ebp - 0x2c]
mov esi, esp
call fcn.00422b30
lea esi, [ebp - 0x78]
call fcn.00429130
add esp, 0x50
push 0x47b974
mov ecx, esi
push ecx
call fcn.00453410
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ebx
call edi
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x447fed
xor edx, edx
mov ebx, 7
push 0x21
mov eax, str.Unable_to_connect_to_a_named_pipe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00430450
push 0x199
push str.....CommonSourceADXBootstrapperClickTwice.DownloaderPipe.cpp
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov byte [ebp - 4], bl
call fcn.00447010
sub esp, 0x40
mov byte [ebp - 4], 8
mov ebx, eax
mov esi, esp
mov dword [ebp - 0x1c0], esp
call fcn.00422b30
lea esi, [ebp - 0x78]
call fcn.00429130
add esp, 0x50
push 0x47b974
mov edx, esi
push edx
call fcn.00453410
mov ecx, dword [esi]
push 0
push 0
lea eax, [ebp - 0x1e4]
push eax
push ecx
mov dword [ebp - 0x1e4], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x44805f
mov dword [ebp - 0x1c], eax
xor edx, edx
push 0x1e
mov eax, str.SetNamedPipeHandleState_failed
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
call fcn.00430450
push 0x19d
push str.....CommonSourceADXBootstrapperClickTwice.DownloaderPipe.cpp
lea eax, [ebp - 0x2c]
push eax
lea ebx, [ebp - 0x94]
mov byte [ebp - 4], 9
call fcn.00447a60
sub esp, 0x48
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1c0], esp
mov ebx, eax
jmp 0x447f46
cmp dword [ebp + 0xc], 0
jne 0x448174
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x487e64
call edi
mov edx, dword [esi]
push 0x487e64
mov dword [0x4878a4], edx
mov byte [0x487872], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x448112
call fcn.004481e0
xor ecx, ecx
mov word [ebp - 0x2c], cx
push 0x18
mov eax, str.Client_failed_to_connect
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00430450
push 0x1ab
push str.....CommonSourceADXBootstrapperClickTwice.DownloaderPipe.cpp
lea edx, [ebp - 0x2c]
push edx
lea ebx, [ebp - 0x94]
mov byte [ebp - 4], 0xb
call fcn.00447a60
sub esp, 0x48
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1c0], esp
mov ebx, eax
mov esi, esp
call fcn.00422b30
lea esi, [ebp - 0x78]
call fcn.00429130
add esp, 0x50
push 0x47b974
mov eax, esi
push eax
jmp 0x447f60
push 0x487e64
call edi
mov cl, byte [0x487872]
push 0x487e64
mov byte [ebp - 0x1b9], cl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x1b9], 0
je 0x44816f
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004481e0
mov eax, str.The_pipe_terminated.
lea esi, [ebp - 0x2c]
call fcn.00430560
push 0x1bb
push str.....CommonSourceADXBootstrapperClickTwice.DownloaderPipe.cpp
sub esp, 0x48
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x1c0], esp
mov ebx, esi
jmp 0x4480f3
call fcn.004481e0
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448194
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4481ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0044ee97
mov esp, ebp
pop ebp
ret 8