Function at 0x49d1d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c0f90
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
lea eax, [ecx + 4]
mov dword [ecx], 0x65e3e0
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 4]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x49d375
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebx + 0x38]
cmp ecx, 8
jb 0x49d259
mov eax, dword [ebx + 0x24]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x49d24f
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x49d3c6
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 7
mov word [ebx + 0x24], 0
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 4]
mov dword [ecx], 0
mov esi, dword [eax]
test esi, esi
jne 0x49d365
push 0xc
push dword [ebx + 0x14]
call fcn.005d319e
add esp, 8
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x49d2b1
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
push 1
call edi
mov eax, dword [ebx + 0xc]
inc eax
cmp eax, 2
jb 0x49d2de
mov dword [ebp - 0x10], 1
call fcn.0040e440
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc]
call fcn.0040f9e0
add esp, 4
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 8]
inc eax
cmp eax, 2
jb 0x49d30b
mov dword [ebp - 0x10], 2
call fcn.0040e440
mov eax, dword [ebp - 0x20]
push dword [eax + 8]
call fcn.0040f9e0
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
inc eax
cmp eax, 2
jb 0x49d338
mov dword [ebp - 0x10], 3
call fcn.0040e440
mov eax, dword [ebp - 0x24]
push dword [eax]
call fcn.0040f9e0
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
push esi
call fcn.005d319e
add esp, 8
test edi, edi
mov esi, edi
je 0x49d283
mov ecx, dword [esi + 8]
mov edi, dword [esi]
test ecx, ecx
je 0x49d350
call fcn.0049d5e0
jmp 0x49d350
mov dword [ebp - 0x10], 4
push 0
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0x1388
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49d21b
push 0
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x49d21b
mov dword [ebp - 0x10], 0
call fcn.006207e0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 0x24]
call fcn.005d4a10
lea ecx, [esi + 0x14]
call fcn.004c0910
lea ecx, [esi + 0x10]
call fcn.004c08e0
lea ecx, [esi + 0xc]
call fcn.005fa9f0
add esi, 8
mov ecx, esi
call fcn.005fa9f0
mov ecx, dword [ebp - 0x24]
call fcn.005fa9f0
call fcn.0061de80
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
int3