Function at 0x443850
Capabilities:
Connect pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5d12
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e5a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov al, byte [ebx + 4]
xor esi, esi
mov dword [ebp - 0x14], esi
test al, al
jne 0x443a57
lea edi, [ebx + 0x38]
jmp 0x443894
xor esi, esi
push 0x4e9458
push 0x5c
call fcn.0046cb15
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x4438c7
cmp dword [ebx + 0x20], 8
lea edx, [ebx + 0xc]
jb 0x4438b8
mov edx, dword [edx]
mov ecx, dword [ebx + 8]
push ecx
push edx
push ebx
mov ecx, eax
call fcn.004420f0
jmp 0x4438c9
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.004427a0
mov eax, dword [ebp - 0x24]
mov esi, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [edi]
mov dword [ebp - 0x28], edx
mov dword [edi], eax
test esi, esi
je 0x44391f
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44391f
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x44391f
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov al, byte [ebx + 4]
test al, al
jne 0x443a4c
mov esi, dword [edi]
test esi, esi
je 0x443a4c
cmp dword [esi + 0xc], 0xffffffff
je 0x443979
lea ecx, [esi + 0x58]
push ecx
push str.Waiting_for_client_connection_server_id
call fcn.00440290
mov ecx, eax
call fcn.00441260
mov edx, dword [esi + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x443966
mov ecx, 1
jmp 0x443976
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
mov byte [esi + 0x1c], cl
cmp byte [esi + 0x1c], 0
je 0x443a4c
push str.Server_connected
call fcn.00440290
mov ecx, eax
call fcn.00402c66
lea esi, [ebx + 0x40]
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push 0x443030
push 0
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4439e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x18]
push edx
push str.CreateThread_failed__GLE_d._n
mov dword [ebp - 0x18], eax
call fcn.00440290
mov ecx, eax
call fcn.0043b900
jmp 0x443a3e
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004424b0
add esp, 0xc
push eax
lea ecx, [ebx + 0x28]
mov byte [ebp - 4], 2
call fcn.004437b0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
test eax, eax
je 0x443a3e
mov ebx, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x443a3b
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x443a3b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ebx, dword [ebp - 0x10]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [ebx + 4]
test cl, cl
je 0x443892
push str.Finish_Pool_Thread:
call fcn.00440290
mov ecx, eax
call fcn.00402ce8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret