Function at 0x416fa0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45acfa
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.00402420
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x416fe6
xor al, al
jmp 0x4173a7
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00416e10
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.0040c560
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 0x417039
xor al, al
jmp 0x417057
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x417051
cmp eax, 0x80
je 0x417051
xor al, al
jmp 0x417057
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.0043c009
mov ebx, eax
add esp, 4
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 3
push 0x21c
push 0
push ebx
call fcn.0043dca0
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.00413630
mov byte [ebp - 4], 5
lea ecx, [ebx + 0xa8]
call fcn.00419f00
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.004173d0
push 0xc
mov byte [ebx + 0x218], 0
mov dword [ebp - 0x28], 0
call fcn.0043c009
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.0043c009
mov ebx, eax
add esp, 4
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 9
push 0x18
call fcn.0043c009
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.00402430
lea ecx, [edi + 8]
call fcn.00402420
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.004025b0
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 0x46e6e8
mov byte [ebx + 8], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x1c], 0
call fcn.004023d0
mov byte [ebp - 4], 0xd
sub esp, 8
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.004354f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x74]
call fcn.00402370
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], 0x417570
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 0x4172e3
lea edi, [eax + 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x417243
mov eax, dword [edi]
test eax, eax
je 0x417243
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 0x4172c4
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 0x42c030
push 0
push 0
call fcn.00458828
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x4172a8
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41729a
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 0x4172c4
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call ebx
sub eax, 1
jne 0x4172bc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0042c1f0
mov byte [ebp - 4], 0xe
test edi, edi
je 0x4172e0
mov eax, dword [edi]
test eax, eax
je 0x4172d9
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 0x417307
cmp byte [eax + 8], 0
je 0x417307
mov eax, dword [esi + 8]
test eax, eax
je 0x417307
mov eax, dword [eax + 0x24]
test eax, eax
je 0x417307
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
mov ecx, esi
call fcn.0042c360
mov cl, byte [edi + 0x218]
mov byte [ebp - 0x49], cl
test al, al
jne 0x417327
lea ecx, [edi + 0xa8]
call fcn.0041ce00
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call ebx
sub eax, 1
jne 0x41733b
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 0x417353
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 1
cmp byte [ebp - 0x41], 0
je 0x41736f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41736b
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 0x41738f
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.00402370
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.0043bff8
mov esp, ebp
pop ebp
ret 8