Function at 0x495060
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x495069
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4952f5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004091f4
test al, al
je 0x4951a8
mov dl, 1
mov eax, dword [0x41a1d0]
call fcn.004038f0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4951a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
sub esi, 1
jno 0x4950de
call fcn.00403860
test esi, esi
jl 0x49518b
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00408b68
mov eax, dword [ebp - 0x18]
call fcn.00404a04
test eax, eax
je 0x495183
mov eax, 1
mov edx, dword [ebp - 0x18]
dec eax
test edx, edx
je 0x49511f
cmp eax, dword [edx - 4]
jb 0x495124
call fcn.00403858
inc eax
cmp byte [edx + eax - 1], 0x23
je 0x495183
mov edx, dword [ebp - 0x18]
mov eax, 0x495310
call fcn.00404d40
dec eax
jne 0x495183
mov edx, dword [ebp - 0x18]
mov eax, 0x495328
call fcn.00404d40
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404a04
mov edx, eax
pop eax
sub edx, eax
jno 0x49515e
call fcn.00403860
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004357f8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408b68
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.00408e2c
mov dword [ebp - 0x10], eax
jmp 0x49518b
inc ebx
dec esi
jne 0x4950e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4951a8
mov eax, dword [ebp - 0x14]
call fcn.00403920
ret
cmp dword [0x4bd950], 0
je 0x495214
xor eax, eax
push ebp
push 0x49520a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
mov eax, dword [0x4bd950]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4951f6
push 0
mov eax, dword [0x4bd950]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
test eax, eax
je 0x495200
mov eax, 0x4bd950
call fcn.0040e380
jmp 0x495200
mov eax, 0x4bd950
call fcn.0040e380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495214
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00409668
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00404a50
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x49461c]
call fcn.00494698
mov dword [0x4bd950], eax
xor ebx, ebx
jmp 0x495260
cmp ebx, dword [ebp + 8]
jle 0x495251
mov bl, 3
jmp 0x4952da
add ebx, 0xa
jno 0x49525b
call fcn.00403860
call fcn.00424a10
push 0xa
mov eax, dword [0x4bd950]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x495245
mov eax, dword [0x4bd950]
cmp dword [eax + 0x38], 0
jle 0x4952ce
mov eax, dword [0x4bd950]
cmp dword [eax + 0x3c], 0
jle 0x4952ce
mov eax, dword [0x4bd950]
mov eax, dword [eax + 0x3c]
cmp eax, dword [ebp - 8]
jg 0x4952ca
cmp dword [ebp - 0x10], 0
jle 0x4952ad
mov eax, dword [0x4bd950]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x10]
jle 0x4952c6
mov edx, dword [ebp - 4]
mov eax, dword [0x4bd950]
call fcn.0049472c
test al, al
je 0x4952c2
mov bl, 1
jmp 0x4952d0
mov bl, 3
jmp 0x4952d0
xor ebx, ebx
jmp 0x4952d0
mov bl, 2
jmp 0x4952d0
mov bl, 3
mov eax, 0x4bd950
call fcn.0040e380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4952fc
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00404770
ret