Function at 0x445770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x490a30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x10
call fcn.0044ccf7
add esp, 4
cmp dword [esi + 0x44], 0x444770
mov edi, eax
mov dword [esp + 0x20], edi
jne 0x4459d9
lea edi, [esi + 0x54]
call fcn.00446c70
lea ebx, [esi + 0x48]
mov edi, ebx
mov dword [esp + 0x1c], eax
call fcn.00446c70
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x54485244
push eax
mov eax, dword [ecx]
call fcn.00443a90
add esp, 0x10
test eax, eax
je 0x44580d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edi, [esi + 0x60]
call fcn.00446c70
mov edi, ebx
mov dword [esp + 0x1c], eax
call fcn.00446c70
mov edi, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edx]
lea ebx, [esp + 0x1c]
call fcn.00443b60
add esp, 8
test eax, eax
jne 0x445899
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push eax
push edi
push ebx
mov ecx, esi
call fcn.004454b0
test eax, eax
je 0x4458a1
test edi, edi
je 0x445869
push edi
call fcn.0046dd15
add esp, 4
lea edi, [esi + 0x60]
call fcn.00446c70
lea edi, [esi + 0x48]
mov ebx, eax
call fcn.00446c70
mov edi, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x1c]
call fcn.00443b60
add esp, 8
test eax, eax
je 0x445842
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp ebx, 0x45525252
jne 0x4458d2
mov esi, dword [edi]
push edi
call fcn.0046dd15
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, 0x5448524e
jne 0x4457f6
mov dword [esp + 0x14], edi
push str..pipe_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0
call fcn.0040aea0
push edi
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x3c], 1
call fcn.00408f40
mov eax, dword [eax]
add esp, 0xc
push 0
push 0x10000000
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [esp + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44594e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445973
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
cmp dword [ebx + 8], eax
jne 0x4459ca
push ebx
call fcn.0044cd27
mov esi, dword [esi + 0x28]
mov edx, dword [esi]
mov eax, dword [edx + 4]
add esp, 4
push str.Unable_to_connect_to_service____
mov ecx, esi
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.0046dd15
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov dword [esp + 0x34], eax
call fcn.0046dd15
add esp, 4
mov edi, ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [edi + 0xc], esi
mov ebx, dword [esi + 0x44]
push 0xc
call fcn.0044ccf7
add esp, 4
test eax, eax
je 0x445a04
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x445a06
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push 0x437580
push 0
push 0
mov dword [eax + 4], edi
mov dword [eax], ebx
mov dword [eax + 8], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8