Function at 0x416ea0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a5fa
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 0x48]
mov ecx, esi
call fcn.00402400
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x416ee6
xor al, al
jmp 0x4172a7
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00416d10
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c4f0
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x20], 0
test eax, eax
jne 0x416f39
xor al, al
jmp 0x416f57
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416f51
cmp eax, 0x80
je 0x416f51
xor al, al
jmp 0x416f57
mov byte [ebp - 0x14], 1
mov al, 1
mov byte [ebp - 0x41], al
mov byte [ebp - 0x20], al
mov byte [ebp - 4], 2
push 0x21c
call fcn.0043b929
mov ebx, eax
add esp, 4
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 3
push 0x21c
push 0
push ebx
call fcn.0043d5c0
add esp, 0xc
mov dword [ebx], vtable.RC::RCRefCounted.0
mov dword [ebx + 4], 0
mov byte [ebp - 4], 4
lea ecx, [ebx + 0xc]
mov dword [ebx], vtable.RC::RCInstallSendStatV5ThreadParam.0
call fcn.00413830
mov byte [ebp - 4], 5
lea ecx, [ebx + 0xa8]
call fcn.00419e00
mov byte [ebp - 4], 2
lea eax, [ebx + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xc]
push edi
mov dword [ebx + 8], eax
call fcn.004172d0
push 0xc
mov byte [ebx + 0x218], 0
mov dword [ebp - 0x28], 0
call fcn.0043b929
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
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], 8
push 0x44
mov dword [eax], vtable.RC::RCThread.0
call fcn.0043b929
mov ebx, eax
add esp, 4
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 9
push 0x18
call fcn.0043b929
add esp, 4
mov dword [ebx + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 0xa
lea edi, [ebx + 0x24]
mov dword [ebp - 0x5c], edi
lea ecx, [edi + 8]
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.00402410
lea ecx, [edi + 8]
call fcn.00402400
mov dword [ebp - 0x4e], 0
lea ecx, [ebp - 0x4e]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
push ecx
push eax
call fcn.00402590
add esp, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x74]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x10], 0xffffffff
mov dword [ebx + 0x14], 0xffffffff
push 0x46e63c
mov byte [ebx + 8], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x1c], 0
call fcn.004023b0
mov byte [ebp - 4], 0xd
sub esp, 8
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.00434e10
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x74]
call fcn.00402350
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x48]
mov dword [esi + 8], ebx
mov dword [ebx], edi
mov eax, dword [esi + 8]
mov dword [eax + 4], 0x417470
mov byte [ebp - 4], 2
lea eax, [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 1
push eax
mov dword [ebp - 0x28], esi
call ebx
mov byte [ebp - 4], 0xe
mov eax, dword [esi + 8]
test eax, eax
je 0x4171e3
lea edi, [eax + 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x417143
mov eax, dword [edi]
test eax, eax
je 0x417143
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0xf
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4171c4
push 1
lea eax, [esi + 4]
push eax
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x42b940
push 0
push 0
call fcn.00458148
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x4171a8
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41719a
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4171c4
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call ebx
sub eax, 1
jne 0x4171bc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0042bb00
mov byte [ebp - 4], 0xe
test edi, edi
je 0x4171e0
mov eax, dword [edi]
test eax, eax
je 0x4171d9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x48]
mov eax, dword [esi + 8]
test eax, eax
je 0x417207
cmp byte [eax + 8], 0
je 0x417207
mov eax, dword [esi + 8]
test eax, eax
je 0x417207
mov eax, dword [eax + 0x24]
test eax, eax
je 0x417207
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
mov ecx, esi
call fcn.0042bc70
mov cl, byte [edi + 0x218]
mov byte [ebp - 0x49], cl
test al, al
jne 0x417227
lea ecx, [edi + 0xa8]
call fcn.0041cd00
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call ebx
sub eax, 1
jne 0x41723b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 2
lea eax, [esi + 4]
push 0xffffffffffffffff
push eax
call ebx
sub eax, 1
jne 0x417253
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 1
cmp byte [ebp - 0x41], 0
je 0x41726f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41726b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41728f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402350
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b918
mov esp, ebp
pop ebp
ret 8