Function at 0x61025a20
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x31c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2f0], edx
mov eax, dword [esi + 0xbe8]
mov dword [ebp - 0x2f4], ecx
mov byte [ebp - 0x2f5], 0
test eax, eax
jne 0x61025cc0
lea eax, [esi + 0xbec]
xor edi, edi
mov dword [ebp - 0x2fc], eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [esi + 0xbe4]
lea ecx, [edx - 4]
cmp ecx, dword [ebp - 0x2fc]
jb 0x61025b70
mov edx, dword [edx - 4]
xor ebx, ebx
mov eax, edx
lock cmpxchg dword [ecx], ebx
jne 0x61025a8c
test eax, eax
mov ebx, eax
jne 0x61025b00
inc edi
cmp edi, 0x13
jle 0x61025a70
mov eax, dword [0x610f08a0]
test eax, eax
je 0x61025aec
cmp byte [ebp - 0x2f5], 0
mov eax, 0x61024564
jne 0x61025aba
mov eax, 0x610258f8
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2ec]
mov dword [esp + 0xc], 0x610258fd
mov dword [esp + 8], 0x610258c0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x800
mov dword [esp], 0x610f089c
call fcn.6108fd50
movzx eax, byte [ebp - 0x2f5]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call fcn.61003cc0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x2f0]
mov edx, dword [ebp - 0x2ec]
mov dword [esp], eax
mov eax, esi
call fcn.61025690
mov eax, dword [0x610f08a0]
sub esp, 8
test eax, eax
jne 0x61025b40
mov byte [ebp - 0x2f5], 1
jmp 0x61025aa3
mov dword [esp + 0xc], 0x61025920
mov dword [esp + 8], 0x610258c0
mov dword [esp + 4], 0x800
mov dword [esp], 0x610f089c
call fcn.6108fd50
mov eax, dword [0x610f08a0]
jmp 0x61025b34
mov eax, dword [esi + 0x238]
mov ebx, dword [eax + 8]
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x61025c90
mov dword [esp], ebx
call sub.KERNEL32.dll_SuspendThread
sub esp, 4
test eax, eax
jne 0x61025c79
mov dword [esp], ebx
mov ecx, 0x10003
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2e8], ecx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetThreadContext
sub esp, 8
test eax, eax
jne 0x61025c36
mov dword [esp + 0xc], 0x61025960
mov dword [esp + 8], 0x610258c0
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
mov dword [esp], ebx
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
cmp byte [ebp - 0x2f5], 0
jne 0x61025a9e
mov edx, dword [0x610f08a0]
test edx, edx
jne 0x61025c10
xor eax, eax
call fcn.61055610
jmp 0x61025a98
mov dword [esp + 0xc], 0x610259a0
mov dword [esp + 8], 0x610258c0
mov dword [esp + 4], 0x800
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61025c03
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call fcn.61025490
test al, al
je 0x61025be1
mov eax, dword [ebp - 0x2f4]
lea edx, [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2ec]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2f0]
mov dword [esp], eax
mov eax, esi
call fcn.610257b0
mov byte [ebp - 0x2f5], al
jmp 0x61025be1
mov dword [esp], ebx
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
jmp 0x61025a9e
mov dword [esp + 0xc], 0x610259c3
mov dword [esp + 8], 0x610258c0
mov dword [esp + 4], 0x800
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61025b86
mov edx, dword [0x610f08a0]
test edx, edx
je 0x61025aec
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2ec]
mov dword [esp + 0xc], 0x610259e0
mov dword [esp + 8], 0x610258c0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x800
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61025a9e