Function at 0x70053b50
Capabilities:
Create thread

Disassembly:
push ebp
mov eax, 8
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x2f00]
cmp dword [ebx + 0x3cc8], edx
cmovle edx, dword [ebx + 0x3cc8]
mov dword [ebx + 0x3cc4], 0
mov dword [ebx + 0x3cd4], 0
cmp edx, 8
cmovle eax, edx
cmp eax, 1
jle 0x70053d71
sub eax, 1
mov dword [ebx + 0x3cc4], 1
mov dword [ebx + 0x3cd0], eax
mov dword [esp + 4], eax
mov dword [esp], 4
call fcn.700678c0
test eax, eax
mov dword [ebx + 0x3d10], eax
je 0x70053d83
mov eax, dword [ebx + 0x3cd0]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.700678c0
test eax, eax
mov dword [ebx + 0x3d14], eax
je 0x70053df2
imul eax, dword [ebx + 0x3cd0], 0xf20
mov dword [esp], 0x20
mov dword [esp + 4], eax
call fcn.70067850
test eax, eax
mov dword [ebx + 0x3d08], eax
je 0x70053dc9
imul edx, dword [ebx + 0x3cd0], 0xf20
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.6fef7ef0
mov eax, dword [ebx + 0x3cd0]
mov dword [esp], 0xc
mov dword [esp + 4], eax
call fcn.700678c0
test eax, eax
mov dword [ebx + 0x3d0c], eax
je 0x70053da6
mov esi, dword [ebx + 0x3cd0]
test esi, esi
je 0x70053d79
mov eax, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], eax
lea edx, [esi*4]
mov ecx, edx
add ecx, dword [ebx + 0x3d14]
mov dword [ebp - 0x24], edx
mov dword [esp + 0xc], 0
mov dword [ebp - 0x20], ecx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebx + 0x3d08]
sub esp, 0x10
add eax, edi
mov dword [esp], eax
call fcn.70052470
mov ecx, dword [ebx + 0x3d08]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add eax, dword [ebx + 0x3d0c]
add edx, dword [ebx + 0x3d10]
add ecx, edi
add edi, 0xf20
mov dword [eax], esi
add esi, 1
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [ebp - 0x20], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x70053a50
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov edx, dword [ebp - 0x20]
add dword [ebp - 0x1c], 0xc
cmp dword [ebx + 0x3cd0], esi
mov dword [edx], eax
ja 0x70053c77
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [ebp - 0x28]
mov dword [ebx + 0x3d18], eax
mov eax, dword [ebx + 0x3cd0]
sub esp, 0x10
mov dword [ebx + 0x3cd4], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [ebp - 0x28], eax
jmp 0x70053d3a
lea eax, [ebx + 0xf30]
mov dword [esp + 8], str.Failed_to_allocate__pbi__h_decoding_thread_
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.70053ae0
jmp 0x70053bc8
lea eax, [ebx + 0xf30]
mov dword [esp + 8], str.Failed_to_allocate__pbi__de_thread_data_
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.70053ae0
jmp 0x70053c56
lea eax, [ebx + 0xf30]
mov dword [esp], eax
mov dword [esp + 8], str.Failed_to_allocate__pbi__mb_row_di_
mov dword [esp + 4], 2
call fcn.70053ae0
mov eax, dword [ebx + 0x3d08]
jmp 0x70053c14
lea eax, [ebx + 0xf30]
mov dword [esp + 8], str.Failed_to_allocate__pbi__h_event_start_decoding_
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.70053ae0
jmp 0x70053bec