Function at 0x420030
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.00527f00
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 0x42009f
push 1
push esi
call fcn.00420a50
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4200a6
jmp 0x420547
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.00562bc5
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 0x449800
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4204bb
mov ebx, dword [esi + 0x1c]
cmp ebx, 0xffffffff
jne 0x420122
push 0
push esi
call fcn.00420a50
add esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x420129
jmp 0x420590
mov dword [esi + 0x1c], 0xffffffff
push 0x28
call fcn.00562bc5
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 0x449800
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x20], eax
test eax, eax
je 0x420501
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 0x42024d
jmp 0x4202b6
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x4201d8
mov edx, dword [ecx + 8]
cmp dword [edx], ecx
mov ecx, edx
jne 0x4201c7
mov ecx, dword [esp + 0xc]
cmp dword [ecx], edi
je 0x4201bf
mov esi, dword [esp + 8]
dec dword [esi + 0x30]
push edi
push eax
call fcn.0050aa70
add esp, 8
push edi
call fcn.00562bc0
add esp, 4
mov ecx, ebx
call fcn.004205e0
push ebx
call fcn.00562bc0
add esp, 4
cmp byte [esi + 0x34], 0
jne 0x420212
cmp dword [esi + 0x30], 0
je 0x4202ac
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 0x4202b6
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4203dc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4201f2
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 0x42026c
cmp edi, dword [esp + 0x10]
je 0x4201f2
cmp dword [edi + 0x10], ebx
ja 0x4201f2
mov esi, dword [edi + 4]
mov ecx, edi
test esi, esi
je 0x4201c7
mov edx, esi
mov esi, dword [esi]
test esi, esi
je 0x4201d0
jmp 0x42029e
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.004207e0
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.004207e0
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 0x42042f
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [esp + 0x10]
cmp esi, edi
jne 0x4203ea
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x2c]
call fcn.004369e0
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 0x4203b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42043d
test ebx, ebx
je 0x4203c7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42047c
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00565ea5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esp + 4]
call fcn.0050a710
jmp 0x42025c
mov edi, dword [esp + 0x10]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x420405
mov ecx, ebx
call fcn.004205e0
push ebx
call fcn.00562bc0
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x420424
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x42040c
mov esi, eax
cmp eax, edi
mov ebx, dword [esp + 0x1c]
je 0x42037c
jmp 0x4203ee
mov eax, dword [esi + 8]
cmp dword [eax], esi
mov esi, eax
jne 0x420424
jmp 0x420414
mov ecx, dword [esp + 4]
call fcn.0050a710
jmp 0x42036e
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.0050b300
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005bae80
add esp, 8
mov ecx, esi
push 0x62651b
call fcn.005d7cb0
mov ecx, esi
call fcn.00590430
jmp 0x4203b4
push 0x1e
push str.scoped_handle.cc
push str.Free
lea esi, [esp + 0x3c]
push esi
call fcn.0050b300
add esp, 0x10
push esi
lea esi, [esp + 0x28]
push esi
call fcn.005bae80
add esp, 8
mov ecx, esi
push 0x62651b
call fcn.005d7cb0
mov ecx, esi
call fcn.00590430
jmp 0x4203c7
push 0x14c
push str.exception_handler_server.cc
push 0x62e96b
lea esi, [esp + 0x3c]
push esi
call fcn.0050b300
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bae80
add esp, 8
mov ecx, ebx
push 0x637650
call fcn.005d7cb0
mov ecx, ebx
call fcn.00590430
jmp 0x420103
push 0x14c
push str.exception_handler_server.cc
push 0x62e96b
lea esi, [esp + 0x3c]
push esi
call fcn.0050b300
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bae80
add esp, 8
mov ecx, ebx
push 0x637650
call fcn.005d7cb0
mov ecx, ebx
call fcn.00590430
jmp 0x420183
push 0x13d
push str.exception_handler_server.cc
push 0x62e96b
lea esi, [esp + 0x3c]
push esi
call fcn.0050b300
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bae80
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005d7cb0
mov ecx, ebx
call fcn.00590430
xor ebx, ebx
dec ebx
jmp 0x4200a6
push 0x13d
push str.exception_handler_server.cc
push 0x62e96b
lea esi, [esp + 0x3c]
push esi
call fcn.0050b300
add esp, 0x10
lea ebx, [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ebx
call fcn.005bae80
add esp, 8
mov ecx, ebx
push str.CreateNamedPipe
call fcn.005d7cb0
mov ecx, ebx
call fcn.00590430
xor ebx, ebx
dec ebx
jmp 0x420129