Function at 0x53a0d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ecx, 0x70ac9b
push edi
call fcn.0056b0a5
mov eax, dword [esi + 0x3238]
mov ecx, 8
mov edx, dword [esi + 0x30b0]
cmp eax, ecx
mov dword [esi + 0x3234], 0
cmovg eax, ecx
mov dword [esi + 0x3244], 0
cmp eax, edx
cmovle edx, eax
cmp edx, 1
jle 0x53a372
dec edx
mov dword [esi + 0x3234], 1
mov ecx, 4
mov dword [esi + 0x3240], edx
call fcn.00536cd0
mov dword [esi + 0x3280], eax
lea ebx, [esi + 0x1010]
test eax, eax
jne 0x53a15b
push str.Failed_to_allocate__pbi__h_decoding_thread_
push 2
push ebx
call fcn.005359f0
add esp, 0xc
mov edx, dword [esi + 0x3240]
mov ecx, 4
call fcn.00536cd0
mov dword [esi + 0x3284], eax
test eax, eax
jne 0x53a185
push str.Failed_to_allocate__pbi__h_event_start_decoding_
push 2
push ebx
call fcn.005359f0
add esp, 0xc
mov ecx, dword [esi + 0x3240]
xor edi, edi
shl ecx, 0xc
mov eax, edi
add ecx, 0x23
adc eax, edi
mov dword [esp + 0x14], eax
jne 0x53a1bd
cmp ecx, 0x7fff0000
ja 0x53a1bd
push ecx
call fcn.00555564
add esp, 4
test eax, eax
je 0x53a1bf
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x53a1bf
xor edi, edi
mov dword [esi + 0x3278], edi
test edi, edi
jne 0x53a1df
push str.Failed_to_allocate__pbi__mb_row_di_
push 2
push ebx
call fcn.005359f0
mov edi, dword [esi + 0x3278]
add esp, 0xc
mov eax, dword [esi + 0x3240]
shl eax, 0xc
push eax
push 0
push edi
call fcn.00552c40
mov edx, dword [esi + 0x3240]
add esp, 0xc
mov ecx, 0xc
call fcn.00536cd0
mov dword [esi + 0x327c], eax
test eax, eax
jne 0x53a21e
push str.Failed_to_allocate__pbi__de_thread_data_
push 2
push ebx
call fcn.005359f0
add esp, 0xc
push 0
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x3288], eax
test eax, eax
jne 0x53a249
push str.Failed_to_initialize_semaphore
push 2
push ebx
call fcn.005359f0
add esp, 0xc
xor ebx, ebx
cmp dword [esi + 0x3240], ebx
jbe 0x53a339
xor edi, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
push 0
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [esi + 0x3284]
lea edx, [ebx*4]
mov dword [edx + ecx], eax
test eax, eax
je 0x53a339
mov ecx, dword [esi + 0x3278]
add ecx, dword [esp + 0xc]
call fcn.00538b70
mov eax, dword [esi + 0x327c]
push 0
push 0
mov dword [edi + eax], ebx
mov eax, dword [esi + 0x327c]
mov dword [edi + eax + 4], esi
mov eax, dword [esi + 0x327c]
mov ecx, dword [esi + 0x3278]
add ecx, dword [esp + 0x14]
mov dword [edi + eax + 8], ecx
lea ecx, [ebx*4]
mov eax, dword [esi + 0x327c]
add eax, edi
mov edi, dword [esi + 0x3280]
push eax
push 0x539fd0
push 0
push 0
add edi, ecx
call fcn.0055cd27
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x53a31e
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [esp + 0x10]
inc ebx
add dword [esp + 0xc], 0x1000
add edi, 0xc
mov dword [esp + 0x10], edi
cmp ebx, dword [esi + 0x3240]
jb 0x53a261
jmp 0x53a339
mov eax, dword [esi + 0x3284]
lea ecx, [ebx*4]
mov eax, dword [ecx + eax]
test eax, eax
je 0x53a339
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3244], ebx
cmp ebx, dword [esi + 0x3240]
je 0x53a372
test ebx, ebx
jne 0x53a35c
mov eax, dword [esi + 0x3288]
test eax, eax
je 0x53a35c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Failed_to_create_threads
lea eax, [esi + 0x1010]
push 2
push eax
call fcn.005359f0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret