Function at 0x42c340
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f6e7
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x62f018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ecx, 0x6355a1
call fcn.00561ea5
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42c39b
mov eax, dword [eax]
test eax, eax
je 0x42c39b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
cmp eax, ecx
je 0x42c3bf
nop
cmp edx, dword [eax]
je 0x42c68a
add eax, 0x18
cmp eax, ecx
jne 0x42c3b0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], edx
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
cmp dword [esi + 8], ecx
je 0x42c3ed
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [ecx + 0x10], xmm0
add dword [esi + 4], 0x18
jmp 0x42c3f9
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.004304d0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x42c44e
push 0
mov ecx, edi
call fcn.004b7d10
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x42c41e
cmp byte [eax + 8], 0
je 0x42c41e
mov edi, dword [esi + 0x10]
jmp 0x42c446
mov edi, dword [esi + 0x10]
test edi, edi
je 0x42c44e
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x42c43d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [esi + 0x10], 0
xor edi, edi
test edi, edi
jne 0x42c68a
mov ecx, dword [esi + 0x38]
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
test ecx, ecx
je 0x42c462
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42c46c
push ecx
call eax
push 0xc
call fcn.0052f564
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov byte [ebp - 4], 3
mov dword [eax], vtable.RC::RCRefCounted.0
mov dword [eax + 4], 0
mov byte [ebp - 4], 4
push 0x44
mov dword [eax], vtable.RC::RCThread.0
call fcn.0052f564
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 5
lea esi, [edi + 0x20]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 6
push 0x18
call fcn.0052f564
add esp, 0xc
mov dword [esi], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 7
lea ecx, [edi + 0x24]
call fcn.0049afb0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
push 0x5c861c
mov byte [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x1c], 0
call fcn.00403ed0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x54]
push ecx
push 1
push eax
lea ecx, [edi + 0x24]
call fcn.0049b210
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x54]
call fcn.00404570
mov byte [ebp - 4], 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ecx + 8], edi
mov dword [edi], esi
mov eax, dword [ecx + 8]
mov dword [eax + 4], 0x42ca50
mov byte [ebp - 4], 1
mov edi, dword [esi + 0x10]
cmp edi, ecx
je 0x42c5a3
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea eax, [ecx + 4]
push 1
push eax
call edi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42c59b
push 0xffffffffffffffff
add eax, 4
push eax
call edi
sub eax, 1
jne 0x42c59b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov edi, eax
mov dword [esi + 0x10], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x42c68a
mov dword [ebp - 0x10], 0
add eax, 0x20
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x10], eax
je 0x42c5ce
mov eax, dword [eax]
test eax, eax
je 0x42c5ce
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0xf
mov eax, dword [edi + 8]
cmp dword [eax + 4], 0
jne 0x42c603
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42c5fa
mov eax, dword [eax]
test eax, eax
je 0x42c5f3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
jmp 0x42c68a
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea eax, [edi + 4]
push 1
push eax
call esi
mov eax, dword [edi + 8]
add eax, 0xc
push eax
push 4
push edi
push 0x4b73e0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [edi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 8]
cmp dword [eax + 0x10], 0
je 0x42c662
mov byte [eax + 8], 1
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x42c654
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x42c67e
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call esi
sub eax, 1
jne 0x42c676
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
call fcn.004b75b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040c6d0
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42c6ac
mov eax, dword [eax]
test eax, eax
je 0x42c6a5
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4