Function at 0x425820
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5522b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
lea ebx, [esi + 0x18]
push 1
mov ecx, ebx
call fcn.004017c0
push 1
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.004017c0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x20]
mov dword [esi + 0x24], str.cBCPipe::CreatePipeThread
mov dword [esi + 0x28], 0x2a8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x2c], eax
xor ebx, ebx
mov dword [esp + 0x40], ebx
cmp dword [edi + 0x40], ebx
je 0x4258ad
dec dword [esi + 0x20]
cmp dword [esi + 0x20], ebx
jg 0x42589f
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x425a32
mov eax, dword [edi + 4]
push 0x5c
push eax
call fcn.0051c13d
mov ebp, dword [edi + 4]
add esp, 8
cmp eax, ebx
je 0x4258c5
lea ebp, [eax + 2]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x30]
call fcn.0049eff0
mov dword [esp + 0x28], vtable.cWCStr.0
push ebp
lea eax, [esp + 0x2c]
push str.GlobalPipeReadySemaphore__s_
push eax
mov byte [esp + 0x4c], 1
call fcn.00401080
mov ecx, dword [esp + 0x38]
or ebp, 0xffffffff
push ebp
push ecx
lea edx, [edi + 8]
push edx
call fcn.004ae9d0
mov eax, dword [esp + 0x44]
add esp, 0x18
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x425929
push ebx
push eax
push 1
push ebx
lea ecx, [esp + 0x28]
call fcn.0049bb20
lea eax, [edi + 0x4c]
push eax
push ebx
push edi
push 0x425730
push ebx
push ebx
mov byte [esp + 0x58], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x40], eax
cmp eax, ebx
jne 0x425992
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x425961
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], bl
mov dword [esp + 0x28], vtable.cWCS.0
call fcn.0049ee80
add dword [esi + 0x20], ebp
cmp dword [esi + 0x20], ebx
jg 0x425984
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x425a32
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x42599f
mov dword [ecx], eax
mov dword [edi + 0x40], ebx
push 0x2710
push 0x2710
lea ecx, [esp + 0x20]
call fcn.0049bc70
cmp eax, ebx
mov eax, dword [esp + 0x18]
je 0x4259f7
cmp eax, ebx
je 0x4259c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], bl
mov dword [esp + 0x28], vtable.cWCS.0
call fcn.0049ee80
add dword [esi + 0x20], ebp
cmp dword [esi + 0x20], ebx
jg 0x4259ec
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x425a32
cmp eax, ebx
je 0x425a06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], bl
mov dword [esp + 0x28], vtable.cWCS.0
call fcn.0049ee80
add dword [esi + 0x20], ebp
cmp dword [esi + 0x20], ebx
jg 0x425a29
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4