Function at 0x41e300
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5188
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4cf084]
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, ecx
push 1
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 0x2c], 0
je 0x41e362
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push dword [edi + 0x30]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
push 0
lea ebx, [edi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jle 0x41e4b5
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [ebp - 0x20], xmm0
xor edx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov esi, dword [edi + 0x50]
test esi, esi
je 0x41e3aa
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov esi, dword [esi + 4]
test esi, esi
jne 0x41e392
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi + 0x54]
test eax, eax
je 0x41e3d6
test edx, edx
je 0x41e3bd
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x20]
jmp 0x41e3c2
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov edx, dword [edi + 0x58]
mov dword [ebp - 0x1c], edx
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
test ecx, ecx
je 0x41e438
mov esi, ecx
mov eax, esi
nop
test eax, eax
je 0x41e401
mov eax, dword [ecx + 0x14]
test eax, eax
mov dword [ebp - 0x2c], 0
cmove edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ecx + 0x14], 0
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0x34], 0
call fcn.00472b40
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push 0
push eax
mov eax, dword [esi + 0x18]
push esi
push 0
call eax
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov esi, ecx
mov eax, ecx
test ecx, ecx
je 0x41e495
mov edx, dword [ebp - 0x1c]
jmp 0x41e3e0
push dword [edi + 0x28]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp dword [ebp - 0x2c], 0
je 0x41e495
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
call fcn.00472b40
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0
push eax
mov eax, dword [esi + 0x18]
push esi
push 0
call eax
add esp, 0x10
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a910
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jg 0x41e376
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x41e515
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4d5358
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x41e4ff
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x41e515
push fcn.00412760
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
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.00477136
mov esp, ebp
pop ebp
ret