Function at 0x41f250
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 [0x64a040]
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.0054e790
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 0x41f2bf
push 1
push esi
call fcn.0041fc70
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41f2c6
jmp 0x41f767
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.0057dc30
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], 0x628b6c
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 0x458830
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41f6db
mov ebx, dword [esi + 0x1c]
cmp ebx, 0xffffffff
jne 0x41f342
push 0
push esi
call fcn.0041fc70
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41f349
jmp 0x41f7b0
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.0057dc30
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], 0x628b6c
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 0x458830
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x20], eax
test eax, eax
je 0x41f721
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 0x41f46d
jmp 0x41f4d6
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x41f3f8
mov edx, dword [ecx + 8]
cmp dword [edx], ecx
mov ecx, edx
jne 0x41f3e7
mov ecx, dword [esp + 0xc]
cmp dword [ecx], edi
je 0x41f3df
mov esi, dword [esp + 8]
dec dword [esi + 0x30]
push edi
push eax
call fcn.0051c2b0
add esp, 8
push edi
call fcn.0057dc2b
add esp, 4
mov ecx, ebx
call fcn.0041f800
push ebx
call fcn.0057dc2b
add esp, 4
cmp byte [esi + 0x34], 0
jne 0x41f432
cmp dword [esi + 0x30], 0
je 0x41f4cc
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 0x41f4d6
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x41f5fc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x41f412
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 0x41f48c
cmp edi, dword [esp + 0x10]
je 0x41f412
cmp dword [edi + 0x10], ebx
ja 0x41f412
mov esi, dword [edi + 4]
mov ecx, edi
test esi, esi
je 0x41f3e7
mov edx, esi
mov esi, dword [esi]
test esi, esi
je 0x41f3f0
jmp 0x41f4be
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.0041fa00
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.0041fa00
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 0x41f64f
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [esp + 0x10]
cmp esi, edi
jne 0x41f60a
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x2c]
call fcn.004201e0
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 0x41f5d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41f65d
test ebx, ebx
je 0x41f5e7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41f69c
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005810d5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esp + 4]
call fcn.0051c110
jmp 0x41f47c
mov edi, dword [esp + 0x10]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x41f625
mov ecx, ebx
call fcn.0041f800
push ebx
call fcn.0057dc2b
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41f644
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x41f62c
mov esi, eax
cmp eax, edi
mov ebx, dword [esp + 0x1c]
je 0x41f59c
jmp 0x41f60e
mov eax, dword [esi + 8]
cmp dword [eax], esi
mov esi, eax
jne 0x41f644
jmp 0x41f634
mov ecx, dword [esp + 4]
call fcn.0051c110
jmp 0x41f58e
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.0051dbb0
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005df230
add esp, 8
mov ecx, esi
push 0x62d630
call fcn.005fa010
mov ecx, esi
call fcn.005abb00
jmp 0x41f5d4
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.0051dbb0
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005df230
add esp, 8
mov ecx, esi
push 0x62d630
call fcn.005fa010
mov ecx, esi
call fcn.005abb00
jmp 0x41f5e7
push 0x14b
push str.exception_handler_server.cc
push 0x6356ab
lea esi, [esp + 0x3c]
push esi
call fcn.0051dbb0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005df230
add esp, 8
mov ecx, ebx
push 0x63dbb0
call fcn.005fa010
mov ecx, ebx
call fcn.005abb00
jmp 0x41f323
push 0x14b
push str.exception_handler_server.cc
push 0x6356ab
lea esi, [esp + 0x3c]
push esi
call fcn.0051dbb0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005df230
add esp, 8
mov ecx, ebx
push 0x63dbb0
call fcn.005fa010
mov ecx, ebx
call fcn.005abb00
jmp 0x41f3a3
push 0x13c
push str.exception_handler_server.cc
push 0x6356ab
lea esi, [esp + 0x3c]
push esi
call fcn.0051dbb0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005df230
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005fa010
mov ecx, ebx
call fcn.005abb00
xor ebx, ebx
dec ebx
jmp 0x41f2c6
push 0x13c
push str.exception_handler_server.cc
push 0x6356ab
lea esi, [esp + 0x3c]
push esi
call fcn.0051dbb0
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005df230
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005fa010
mov ecx, ebx
call fcn.005abb00
xor ebx, ebx
dec ebx
jmp 0x41f349