Function at 0x41d4d0
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.005281e0
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 0x41d53f
push 1
push esi
call fcn.0041def0
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41d546
jmp 0x41d9e7
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.00562f65
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], 0x621a3c
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 0x449e50
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41d95b
mov ebx, dword [esi + 0x1c]
cmp ebx, 0xffffffff
jne 0x41d5c2
push 0
push esi
call fcn.0041def0
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41d5c9
jmp 0x41da30
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.00562f65
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], 0x621a3c
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 0x449e50
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x20], eax
test eax, eax
je 0x41d9a1
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 0x41d6ed
jmp 0x41d756
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x41d678
mov edx, dword [ecx + 8]
cmp dword [edx], ecx
mov ecx, edx
jne 0x41d667
mov ecx, dword [esp + 0xc]
cmp dword [ecx], edi
je 0x41d65f
mov esi, dword [esp + 8]
dec dword [esi + 0x30]
push edi
push eax
call fcn.0050ae10
add esp, 8
push edi
call fcn.00562f60
add esp, 4
mov ecx, ebx
call fcn.0041da80
push ebx
call fcn.00562f60
add esp, 4
cmp byte [esi + 0x34], 0
jne 0x41d6b2
cmp dword [esi + 0x30], 0
je 0x41d74c
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 0x41d756
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x41d87c
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x41d692
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 0x41d70c
cmp edi, dword [esp + 0x10]
je 0x41d692
cmp dword [edi + 0x10], ebx
ja 0x41d692
mov esi, dword [edi + 4]
mov ecx, edi
test esi, esi
je 0x41d667
mov edx, esi
mov esi, dword [esi]
test esi, esi
je 0x41d670
jmp 0x41d73e
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.0041dc80
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.0041dc80
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 0x41d8cf
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [esp + 0x10]
cmp esi, edi
jne 0x41d88a
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x2c]
call fcn.004377c0
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 0x41d854
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41d8dd
test ebx, ebx
je 0x41d867
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41d91c
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00566245
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esp + 4]
call fcn.0050aab0
jmp 0x41d6fc
mov edi, dword [esp + 0x10]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x41d8a5
mov ecx, ebx
call fcn.0041da80
push ebx
call fcn.00562f60
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41d8c4
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x41d8ac
mov esi, eax
cmp eax, edi
mov ebx, dword [esp + 0x1c]
je 0x41d81c
jmp 0x41d88e
mov eax, dword [esi + 8]
cmp dword [eax], esi
mov esi, eax
jne 0x41d8c4
jmp 0x41d8b4
mov ecx, dword [esp + 4]
call fcn.0050aab0
jmp 0x41d80e
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.0050b5e0
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005bb200
add esp, 8
mov ecx, esi
push 0x62651b
call fcn.005d7b80
mov ecx, esi
call fcn.005907d0
jmp 0x41d854
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.0050b5e0
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005bb200
add esp, 8
mov ecx, esi
push 0x62651b
call fcn.005d7b80
mov ecx, esi
call fcn.005907d0
jmp 0x41d867
push 0x14c
push str.exception_handler_server.cc
push 0x62e96b
lea esi, [esp + 0x3c]
push esi
call fcn.0050b5e0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bb200
add esp, 8
mov ecx, ebx
push 0x637650
call fcn.005d7b80
mov ecx, ebx
call fcn.005907d0
jmp 0x41d5a3
push 0x14c
push str.exception_handler_server.cc
push 0x62e96b
lea esi, [esp + 0x3c]
push esi
call fcn.0050b5e0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bb200
add esp, 8
mov ecx, ebx
push 0x637650
call fcn.005d7b80
mov ecx, ebx
call fcn.005907d0
jmp 0x41d623
push 0x13d
push str.exception_handler_server.cc
push 0x62e96b
lea esi, [esp + 0x3c]
push esi
call fcn.0050b5e0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bb200
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005d7b80
mov ecx, ebx
call fcn.005907d0
xor ebx, ebx
dec ebx
jmp 0x41d546
push 0x13d
push str.exception_handler_server.cc
push 0x62e96b
lea esi, [esp + 0x3c]
push esi
call fcn.0050b5e0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bb200
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005d7b80
mov ecx, ebx
call fcn.005907d0
xor ebx, ebx
dec ebx
jmp 0x41d5c9