Function at 0x42cc50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov ebx, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x58], eax
xor edi, edi
dec edi
lea esi, [esp + 0x30]
mov dword [esi + 4], edi
mov dword [esi], edi
push 8
push esi
call fcn.005397a0
add esp, 8
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
mov esi, ebx
lea eax, [ebx + 0x28]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x24]
mov dword [esp + 4], eax
mov ebx, dword [ebx + 0x1c]
cmp ebx, edi
mov dword [esp + 8], esi
jne 0x42ccbf
push 1
push esi
call fcn.0042d670
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42ccc6
jmp 0x42d166
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.00564ea5
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], 0x622b6c
mov dword [eax + 8], ebx
mov byte [eax + 0xc], 0
mov edi, dword [ebp + 8]
mov dword [eax + 0x10], edi
mov ecx, dword [esp + 4]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x20], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4452e0
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x42d0da
mov ebx, dword [esi + 0x1c]
cmp ebx, 0xffffffff
jne 0x42cd42
push 0
push esi
call fcn.0042d670
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42cd49
jmp 0x42d1af
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.00564ea5
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], 0x622b6c
mov dword [eax + 8], ebx
mov byte [eax + 0xc], 0
mov dword [eax + 0x10], edi
mov ecx, dword [esp + 4]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x20], ecx
xor edi, edi
push edi
push edi
push eax
push 0x4452e0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x20], eax
test eax, eax
je 0x42d120
lea eax, [esi + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], edi
lea ebx, [esp + 0x24]
mov dword [ebx], edi
lea ecx, [esp + 0x54]
mov dword [ecx], edi
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
push ebx
push ecx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov ebx, dword [ebx]
test ebx, ebx
mov edi, dword [esp + 4]
jne 0x42ce6c
jmp 0x42ced5
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x42cdf7
mov edx, esi
mov esi, dword [esi]
test esi, esi
jne 0x42cde7
mov ecx, dword [esp + 0xc]
cmp dword [ecx], edi
je 0x42cddf
mov esi, dword [esp + 8]
dec dword [esi + 0x30]
push edi
push eax
call fcn.005060b0
add esp, 8
push edi
call fcn.00564ea0
add esp, 4
mov ecx, ebx
call fcn.0042d200
push ebx
call fcn.00564ea0
add esp, 4
cmp byte [esi + 0x34], 0
jne 0x42ce31
cmp dword [esi + 0x30], 0
je 0x42cecb
mov edi, dword [esp + 4]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], eax
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x60]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x42ced5
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x42cffb
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x42ce11
mov ecx, eax
mov edi, dword [esp + 0x10]
xor edx, edx
cmp dword [ecx + 0x10], ebx
setb dl
cmovae edi, ecx
mov ecx, dword [ecx + edx*4]
test ecx, ecx
jne 0x42ce8b
cmp edi, dword [esp + 0x10]
je 0x42ce11
cmp dword [edi + 0x10], ebx
ja 0x42ce11
mov esi, dword [edi + 4]
mov ecx, edi
test esi, esi
jne 0x42cde7
mov edx, dword [ecx + 8]
cmp dword [edx], ecx
mov ecx, edx
jne 0x42cebd
jmp 0x42cdef
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm0, xmm0
movsd qword [esp + 0x4c], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x3c], xmm0
xor eax, eax
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
xor edi, edi
dec edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x34]
push esi
mov esi, dword [esp + 0x10]
push esi
call fcn.0042d400
add esp, 0xc
xorps xmm0, xmm0
movsd qword [esp + 0x4c], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x3c], xmm0
xor eax, eax
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0042d400
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov ebx, dword [esp + 0x20]
push ebx
call esi
push edi
push dword [esp + 0x24]
call esi
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x42d04e
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [esp + 0x10]
cmp esi, edi
jne 0x42d009
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x2c]
call fcn.00411ca0
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42cfd3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42d05c
test ebx, ebx
je 0x42cfe6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42d09b
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00568175
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esp + 4]
call fcn.00505f10
jmp 0x42ce7b
mov edi, dword [esp + 0x10]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x42d024
mov ecx, ebx
call fcn.0042d200
push ebx
call fcn.00564ea0
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42d043
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x42d02b
mov esi, eax
cmp eax, edi
mov ebx, dword [esp + 0x1c]
je 0x42cf9b
jmp 0x42d00d
mov eax, dword [esi + 8]
cmp dword [eax], esi
mov esi, eax
jne 0x42d043
jmp 0x42d033
mov ecx, dword [esp + 4]
call fcn.00505f10
jmp 0x42cf8d
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.005068d0
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005bdac0
add esp, 8
mov ecx, esi
push 0x627690
call fcn.005d9840
mov ecx, esi
call fcn.00592840
jmp 0x42cfd3
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.005068d0
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005bdac0
add esp, 8
mov ecx, esi
push 0x627690
call fcn.005d9840
mov ecx, esi
call fcn.00592840
jmp 0x42cfe6
push 0x14b
push str.exception_handler_server.cc
push 0x62f6fb
lea esi, [esp + 0x3c]
push esi
call fcn.005068d0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bdac0
add esp, 8
mov ecx, ebx
push 0x637c60
call fcn.005d9840
mov ecx, ebx
call fcn.00592840
jmp 0x42cd23
push 0x14b
push str.exception_handler_server.cc
push 0x62f6fb
lea esi, [esp + 0x3c]
push esi
call fcn.005068d0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bdac0
add esp, 8
mov ecx, ebx
push 0x637c60
call fcn.005d9840
mov ecx, ebx
call fcn.00592840
jmp 0x42cda3
push 0x13c
push str.exception_handler_server.cc
push 0x62f6fb
lea esi, [esp + 0x3c]
push esi
call fcn.005068d0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bdac0
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005d9840
mov ecx, ebx
call fcn.00592840
xor ebx, ebx
dec ebx
jmp 0x42ccc6
push 0x13c
push str.exception_handler_server.cc
push 0x62f6fb
lea esi, [esp + 0x3c]
push esi
call fcn.005068d0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bdac0
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005d9840
mov ecx, ebx
call fcn.00592840
xor ebx, ebx
dec ebx
jmp 0x42cd49