Function at 0x419640
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3aaf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x52f068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403800
lea eax, [esi + 0xc]
push eax
call fcn.00404230
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 8]
cmp eax, ecx
je 0x4196b7
cmp edx, dword [eax]
je 0x419954
add eax, 0x18
cmp eax, ecx
jne 0x4196a8
xorps xmm0, xmm0
mov dword [ebp - 0x48], edx
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
cmp dword [esi + 8], ecx
je 0x4196f0
push ecx
push 0x18
call fcn.004020b0
movups xmm0, xmmword [ebp - 0x48]
add esp, 8
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [eax + 0x10], xmm0
add dword [esi + 4], 0x18
jmp 0x4196fc
lea eax, [ebp - 0x48]
push eax
push ecx
mov ecx, esi
call fcn.0041ba70
mov edi, dword [esi + 0x10]
test edi, edi
je 0x419751
push 0
mov ecx, edi
call fcn.00484b70
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x419721
cmp byte [eax + 8], 0
je 0x419721
mov edi, dword [esi + 0x10]
jmp 0x419749
mov edi, dword [esi + 0x10]
test edi, edi
je 0x419751
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x419740
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [esi + 0x10], 0
xor edi, edi
test edi, edi
jne 0x419954
mov ecx, dword [esi + 0x38]
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
test ecx, ecx
je 0x419765
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x41976f
push ecx
call eax
push 0xc
call fcn.004b906a
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], vtable.RC::RCRefCounted.0
mov dword [eax + 4], 0
mov byte [ebp - 4], 2
push 0x44
mov dword [eax], vtable.RC::RCThread.0
call fcn.004b906a
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
push 0x18
call fcn.004b906a
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
lea esi, [edi + 0x24]
mov dword [ebp - 0x2c], esi
lea ecx, [esi + 8]
mov dword [esi], 0
mov byte [esi + 4], 0
call fcn.00402850
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
push 0x506d8c
mov byte [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x1c], 0
call fcn.00402800
mov byte [ebp - 4], 7
lea eax, [ebp - 0x60]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00484d60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.004027f0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov dword [ecx + 8], edi
mov dword [edi], esi
mov eax, dword [ecx + 8]
mov dword [eax + 4], 0x419c10
mov byte [ebp - 4], 0
mov edi, dword [esi + 0x10]
cmp edi, ecx
je 0x4198a4
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 - 0x20], eax
test eax, eax
je 0x41989c
push 0xffffffffffffffff
add eax, 4
push eax
call edi
sub eax, 1
jne 0x41989c
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov edi, eax
mov dword [esi + 0x10], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x419954
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403800
add eax, 0x20
push eax
call fcn.00404230
mov byte [ebp - 4], 8
mov eax, dword [edi + 8]
cmp dword [eax + 4], 0
je 0x419948
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 0x484880
push 0
push 0
call fcn.004c4ba6
mov ecx, dword [edi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 8]
cmp dword [eax + 0x10], 0
je 0x41992c
mov byte [eax + 8], 1
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41991e
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 0x419948
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call esi
sub eax, 1
jne 0x419940
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
call fcn.00484a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00404260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404260
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b9059
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4