Function at 0x41ba40
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 [0x646040]
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.005273a0
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 0x41baaf
push 1
push esi
call fcn.0041c460
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41bab6
jmp 0x41bf57
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.00564055
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], 0x623a3c
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 0x4481a0
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41becb
mov ebx, dword [esi + 0x1c]
cmp ebx, 0xffffffff
jne 0x41bb32
push 0
push esi
call fcn.0041c460
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41bb39
jmp 0x41bfa0
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.00564055
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], 0x623a3c
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 0x4481a0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x20], eax
test eax, eax
je 0x41bf11
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 0x41bc5d
jmp 0x41bcc6
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x41bbe8
mov edx, dword [ecx + 8]
cmp dword [edx], ecx
mov ecx, edx
jne 0x41bbd7
mov ecx, dword [esp + 0xc]
cmp dword [ecx], edi
je 0x41bbcf
mov esi, dword [esp + 8]
dec dword [esi + 0x30]
push edi
push eax
call fcn.00509490
add esp, 8
push edi
call fcn.00564050
add esp, 4
mov ecx, ebx
call fcn.0041bff0
push ebx
call fcn.00564050
add esp, 4
cmp byte [esi + 0x34], 0
jne 0x41bc22
cmp dword [esi + 0x30], 0
je 0x41bcbc
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 0x41bcc6
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x41bdec
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x41bc02
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 0x41bc7c
cmp edi, dword [esp + 0x10]
je 0x41bc02
cmp dword [edi + 0x10], ebx
ja 0x41bc02
mov esi, dword [edi + 4]
mov ecx, edi
test esi, esi
je 0x41bbd7
mov edx, esi
mov esi, dword [esi]
test esi, esi
je 0x41bbe0
jmp 0x41bcae
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.0041c1f0
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.0041c1f0
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 0x41be3f
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [esp + 0x10]
cmp esi, edi
jne 0x41bdfa
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x2c]
call fcn.00436c10
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 0x41bdc4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41be4d
test ebx, ebx
je 0x41bdd7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41be8c
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00567335
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esp + 4]
call fcn.005092d0
jmp 0x41bc6c
mov edi, dword [esp + 0x10]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x41be15
mov ecx, ebx
call fcn.0041bff0
push ebx
call fcn.00564050
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41be34
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x41be1c
mov esi, eax
cmp eax, edi
mov ebx, dword [esp + 0x1c]
je 0x41bd8c
jmp 0x41bdfe
mov eax, dword [esi + 8]
cmp dword [eax], esi
mov esi, eax
jne 0x41be34
jmp 0x41be24
mov ecx, dword [esp + 4]
call fcn.005092d0
jmp 0x41bd7e
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.00509c60
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005bc600
add esp, 8
mov ecx, esi
push 0x62851b
call fcn.005d93b0
mov ecx, esi
call fcn.00591bc0
jmp 0x41bdc4
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.00509c60
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005bc600
add esp, 8
mov ecx, esi
push 0x62851b
call fcn.005d93b0
mov ecx, esi
call fcn.00591bc0
jmp 0x41bdd7
push 0x14c
push str.exception_handler_server.cc
push 0x63096b
lea esi, [esp + 0x3c]
push esi
call fcn.00509c60
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bc600
add esp, 8
mov ecx, ebx
push 0x639650
call fcn.005d93b0
mov ecx, ebx
call fcn.00591bc0
jmp 0x41bb13
push 0x14c
push str.exception_handler_server.cc
push 0x63096b
lea esi, [esp + 0x3c]
push esi
call fcn.00509c60
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bc600
add esp, 8
mov ecx, ebx
push 0x639650
call fcn.005d93b0
mov ecx, ebx
call fcn.00591bc0
jmp 0x41bb93
push 0x13d
push str.exception_handler_server.cc
push 0x63096b
lea esi, [esp + 0x3c]
push esi
call fcn.00509c60
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bc600
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005d93b0
mov ecx, ebx
call fcn.00591bc0
xor ebx, ebx
dec ebx
jmp 0x41bab6
push 0x13d
push str.exception_handler_server.cc
push 0x63096b
lea esi, [esp + 0x3c]
push esi
call fcn.00509c60
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bc600
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005d93b0
mov ecx, ebx
call fcn.00591bc0
xor ebx, ebx
dec ebx
jmp 0x41bb39