Function at 0x4d7250
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5058a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov byte [ebp - 0x10], 0
xor ebx, ebx
lea eax, [esi + 4]
xor edi, edi
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x90]
test eax, eax
je 0x4d72b3
push eax
call fcn.004d92bb
add esp, 4
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
cmp dword [esi + 0x30], 0
je 0x4d73f4
mov ecx, dword [esi + 0x34]
xor edi, edi
test ecx, ecx
je 0x4d72f1
mov edx, dword [esi + 0x2c]
mov eax, edx
nop
cmp dword [eax], 0
jne 0x4d736e
inc edi
add eax, 4
cmp edi, ecx
jb 0x4d72e0
xor edi, edi
test edi, edi
je 0x4d73f1
jmp 0x4d7300
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0xc]
test eax, eax
jne 0x4d73ee
test edi, edi
je 0x4d73ee
mov eax, dword [edi + 4]
test eax, eax
je 0x4d73b8
cmp dword [eax + 8], 0
jne 0x4d7334
cmp dword [eax + 4], 0
jne 0x4d73b8
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d73b8
mov ecx, dword [esi + 0x98]
mov ebx, dword [esi + 0x94]
cmp ebx, ecx
jne 0x4d739b
mov edx, dword [esi + 0x90]
cmp edi, edx
jb 0x4d7365
lea eax, [edx + ecx*4]
cmp edi, eax
jb 0x4d7680
test ecx, ecx
jne 0x4d7373
lea ebx, [ecx + 1]
jmp 0x4d737f
mov edi, dword [edx + edi*4]
jmp 0x4d72f3
add ebx, ebx
js 0x4d73b8
cmp ebx, 0x1fffffff
ja 0x4d73b8
push 4
push ebx
push edx
call fcn.004d9ded
add esp, 0xc
test eax, eax
je 0x4d73b8
mov dword [esi + 0x98], ebx
mov dword [esi + 0x90], eax
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
lea ecx, [eax + ecx*4]
test ecx, ecx
je 0x4d73b2
mov eax, dword [edi]
mov dword [ecx], eax
inc dword [esi + 0x94]
test edi, edi
je 0x4d73ee
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x4d73e4
mov eax, dword [edi + 0xc]
xor edx, edx
mov ebx, dword [esi + 0x34]
div ebx
inc edx
mov edi, edi
cmp edx, ebx
jae 0x4d73e4
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x4d73d0
mov edi, ecx
test ecx, ecx
jne 0x4d7300
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp dword [esi + 0x94], 0
jg 0x4d7444
cmp dword [esi + 0x7c], 0
je 0x4d7466
push 0
push 0
push 0x12
push dword [esi + 0x80]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x2710
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4d7432
push 0
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x7c], 0
jmp 0x4d7466
cmp dword [esi + 0x7c], 0
jne 0x4d7466
lea eax, [esi + 0x80]
push eax
push 0
push esi
push 0x4d7930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x7c], eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
push 1
push 0
call fcn.004d9ded
add esp, 0xc
test eax, eax
je 0x4d749c
mov ecx, 1
mov ebx, eax
mov dword [ebp - 0x14], ecx
mov edi, 1
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [eax], ecx
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x20]
cmp edi, ecx
jne 0x4d74ea
cmp edx, ebx
jb 0x4d74b5
lea eax, [ebx + ecx*4]
cmp edx, eax
jb 0x4d7680
test ecx, ecx
jne 0x4d74be
lea edi, [ecx + 1]
jmp 0x4d74ca
add edi, edi
js 0x4d74fb
cmp edi, 0x1fffffff
ja 0x4d74fb
push 4
push edi
push ebx
call fcn.004d9ded
add esp, 0xc
test eax, eax
je 0x4d7500
mov ecx, edi
lea edx, [esi + 0x20]
mov edi, dword [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebx + edi*4]
test ecx, ecx
je 0x4d74f5
mov eax, dword [edx]
mov dword [ecx], eax
inc edi
mov dword [ebp - 0x18], edi
jmp 0x4d7503
mov edi, dword [ebp - 0x18]
jmp 0x4d7506
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp dword [esi + 0x88], 0
lea ebx, [esi + 0x88]
mov edx, dword [ebp - 0x1c]
je 0x4d756f
cmp edi, ecx
jne 0x4d755b
cmp ebx, edx
jb 0x4d752b
lea eax, [edx + ecx*4]
cmp ebx, eax
jb 0x4d7680
test ecx, ecx
jne 0x4d7534
lea edi, [ecx + 1]
jmp 0x4d7540
add edi, edi
js 0x4d756f
cmp edi, 0x1fffffff
ja 0x4d756f
push 4
push edi
push edx
call fcn.004d9ded
add esp, 0xc
test eax, eax
je 0x4d756c
mov edx, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
lea ecx, [edx + edi*4]
test ecx, ecx
je 0x4d7566
mov eax, dword [ebx]
mov dword [ecx], eax
inc edi
mov dword [ebp - 0x18], edi
jmp 0x4d756f
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
test edi, edi
jle 0x4d768a
push 0xffffffffffffffff
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, edi
jae 0x4d7667
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0xc]
test eax, eax
je 0x4d75a2
mov bl, 1
mov dword [ebp - 0x10], ebx
jmp 0x4d75c0
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x10]
test eax, eax
je 0x4d7606
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4d75bd
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4d75de
push eax
call fcn.004d92bb
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test bl, bl
je 0x4d727e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x8c]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x94]
xor eax, eax
test edx, edx
jle 0x4d7634
mov ecx, dword [esi + 0x90]
cmp dword [ecx], edi
je 0x4d7637
inc eax
add ecx, 4
cmp eax, edx
jl 0x4d7628
or eax, 0xffffffff
xor ebx, ebx
test eax, eax
lea eax, [esi + 4]
push eax
setns bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x4d75bd
mov eax, dword [esi]
lea ecx, [esi + 0x8c]
push ecx
push 9
push dword [ecx]
mov ecx, esi
call dword [eax + 0x18]
jmp 0x4d75bd
mov ebx, dword [ebp - 0x10]
cmp eax, 0xffffffff
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x4d75c0
push 0x80004005
call fcn.0043a9b0
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]