Function at 0x49b0b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cdd80
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x75aa5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xcc], 1
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xd0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x102
jne 0x49b14d
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0xd0], 0
je 0x49b14d
push 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xd0]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xd0], 0
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0xa0], 0
je 0x49b1b1
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xa0]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x49b19d
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0049e0e0
mov dword [ebp - 0x54], eax
jmp 0x49b1a4
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0xa0], 0
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0xa4], 0
je 0x49b1f8
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x49b1e4
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.0049e110
mov dword [ebp - 0x58], eax
jmp 0x49b1eb
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xa4], 0
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0xa8], 0
je 0x49b23f
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xa8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x49b22b
push 1
mov ecx, dword [ebp - 0x24]
call fcn.0049e140
mov dword [ebp - 0x5c], eax
jmp 0x49b232
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xa8], 0
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0xac], 0
je 0x49b286
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xac]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x49b272
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.0049e170
mov dword [ebp - 0x60], eax
jmp 0x49b279
mov dword [ebp - 0x60], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0xac], 0
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0xdc], 0
je 0x49b2d2
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xdc]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x49b2be
push 1
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x64], eax
jmp 0x49b2c5
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xdc], 0
mov ecx, dword [ebp - 0x50]
add ecx, 0x74
call fcn.0049e9c0
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0x90], 0
je 0x49b324
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x90]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x49b310
push 1
mov ecx, dword [ebp - 0x3c]
call fcn.0049e1a0
mov dword [ebp - 0x68], eax
jmp 0x49b317
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x90], 0
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0xfc], 0
je 0x49b355
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xfc]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.005a6a8e
add esp, 4
mov edx, dword [ebp - 0x50]
mov dword [edx + 0xfc], 0
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x104], 0
je 0x49b386
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.005a6a8e
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x104], 0
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0x10c], 0
je 0x49b3b7
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x10c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.005a6a8e
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x10c], 0
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0xd4], 0
je 0x49b3d3
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x50]
add ecx, 0xe4
call fcn.00401cb0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
add ecx, 0x74
call fcn.0049e880
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
add ecx, 0x58
call fcn.00405300
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
add ecx, 0x3c
call fcn.00405410
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
add ecx, 0x20
call fcn.00405410
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x50]
add ecx, 4
call fcn.00405300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret