Function at 0x5b6ff21c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
call fcn.5b6f1314
mov dword [esp + 0x34], eax
mov dword [eax + 0xc], 3
mov eax, dword [edi + 0xfc]
mov dword [esp + 0x14], eax
and dword [esp + 0x14], 0x100
mov dword [esp + 0x20], eax
je 0x5b6ff259
xor ebx, ebx
mov dword [edi + 0xfc], ebx
jmp 0x5b6ff269
mov ecx, eax
and ecx, 0x80
mov dword [edi + 0xfc], ecx
xor ebx, ebx
test eax, 0x30000
je 0x5b6ff2c0
call fcn.5b6f6adc
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [0x5b7251b8], ebx
jbe 0x5b6ff2bb
mov ecx, dword [0x5b7251b4]
mov esi, dword [ecx + eax*4]
cmp esi, ebx
je 0x5b6ff2aa
cmp dword [esi + 0x20], edi
jne 0x5b6ff2aa
call fcn.5b6f6ae8
push ebx
push ebx
push 0xf
mov eax, esi
call fcn.5b70017a
call fcn.5b6f6adc
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [0x5b7251b8]
jb 0x5b6ff283
call fcn.5b6f6ae8
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x74]
inc dword [edi + 0x80]
mov dword [esp + 0x2c], eax
imul eax, dword [ebp + 0xc]
shl eax, 2
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x3c], eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [edi + 0x98], ebx
mov dword [esp + 0xc], ebx
setne al
mov dword [esp + 0x1c], ebx
lea ebx, [edi + 0x44]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x90]
jmp 0x5b6ff5e2
cmp dword [esp + 0x10], 1
jne 0x5b6ff32e
cmp dword [esi + 0xa0], ecx
je 0x5b6ff5e0
cmp dword [esp + 0x10], 2
jne 0x5b6ff341
cmp dword [esi + 0xa0], ecx
jne 0x5b6ff5e0
cmp dword [esp + 0x14], ecx
je 0x5b6ff364
cmp dword [esi + 0xa0], ecx
je 0x5b6ff364
lea eax, [esi + 0x1c]
mov edx, dword [eax]
or edx, dword [esp + 0x20]
test dl, dl
jns 0x5b6ff364
mov edx, 0x100
lock or dword [eax], edx
test dword [esp + 0x20], 0x20000
je 0x5b6ff37e
cmp dword [esi + 0x4c], ecx
je 0x5b6ff37e
lea eax, [esi + 0x1c]
mov ecx, 0x800
lock or dword [eax], ecx
mov eax, dword [edi + 0x80]
mov ebx, dword [esi + 8]
dec eax
cmp dword [esi + 0x68], eax
setne cl
test ebx, ebx
je 0x5b6ff525
lea eax, [esi + 0x1c]
mov edx, dword [eax]
test dl, 1
jne 0x5b6ff3bc
test cl, cl
je 0x5b6ff3bc
cmp dword [ebx + 0x4c], 0
jne 0x5b6ff5e0
mov ecx, dword [eax]
test ecx, 0x400
je 0x5b6ff5e0
mov ecx, 0x200
lock or dword [eax], ecx
lea eax, [edi + 0x44]
push eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x1c]
test eax, 0x800
je 0x5b6ff3ee
mov eax, dword [esi + 0x48]
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebx + 4]
push ecx
movss dword [esp], xmm0
call fcn.5b6fa7b9
push dword [ebp + 0xc]
mov eax, dword [esi + 0x30]
push dword [ebp + 8]
mov dword [esp + 0x2c], eax
call fcn.5b6fdcb8
mov dword [esp + 0x18], eax
test eax, eax
je 0x5b6ff464
mov ecx, dword [esi + 0x30]
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
jns 0x5b6ff41c
add ecx, dword [esi + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x230]
fld qword [ebp + 0x10]
inc ecx
and ecx, 0x1f
mov edx, ecx
imul edx, edx, 0x18
add edx, ebx
lea eax, [ecx + 0x18]
imul eax, eax, 0x18
fstp qword [edx + 0x238]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ebx], edx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [eax + 0x244], edx
mov edx, dword [esi + 0x30]
mov dword [eax + 0x248], edx
mov dword [ebx + 0x230], ecx
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
test cl, 1
je 0x5b6ff4eb
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebp + 0xc]
jae 0x5b6ff4e2
cmp dword [ebx + 0x40], 0
je 0x5b6ff4d0
mov edx, dword [esi + 0x2c]
sub edx, dword [esi + 0x30]
je 0x5b6ff4a9
test edx, edx
jns 0x5b6ff48c
add edx, dword [esi + 0x28]
mov ecx, dword [ebx + 0x230]
imul ecx, ecx, 0x18
add dword [ecx + ebx + 0x244], edx
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x30], edx
mov dword [ecx + ebx + 0x248], edx
mov dword [ebx + 0x40], 2
mov dword [ebx + 0x48], 0
mov ecx, 0xfffffbfe
lock and dword [eax], ecx
test dword [ebx + 0x14], 0x40000
je 0x5b6ff4eb
push ebx
call fcn.5b6fb826
jmp 0x5b6ff4eb
mov ecx, 0x400
mov edx, eax
lock or dword [edx], ecx
push 0xfffffffffffffffe
pop ecx
lock and dword [eax], ecx
jmp 0x5b6ff4eb
mov eax, dword [edi + 0x80]
mov dword [esi + 0x68], eax
cmp dword [ebx + 0x4c], 0
jne 0x5b6ff4fd
mov eax, dword [esi + 0x1c]
and eax, 0x400
or dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc], eax
jge 0x5b6ff50b
mov dword [esp + 0xc], eax
lea eax, [edi + 0x44]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, 0xfffffdff
lea eax, [esi + 0x1c]
lock and dword [eax], ecx
jmp 0x5b6ff5e0
cmp dword [esi + 0xc], 0
je 0x5b6ff5e0
lea ebx, [esi + 0x1c]
mov eax, dword [ebx]
test al, 1
jne 0x5b6ff540
test cl, cl
jne 0x5b6ff5e0
mov eax, 0x200
mov ecx, ebx
lock or dword [ecx], eax
lea eax, [edi + 0x44]
push eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx]
test eax, 0x800
je 0x5b6ff583
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
test eax, eax
jns 0x5b6ff577
fadd dword [0x5b722e00]
mov eax, dword [esi + 0x48]
push ecx
fstp dword [esp]
call fcn.5b6fa7b9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5b6fdcb8
mov ecx, dword [ebx]
test cl, 1
je 0x5b6ff5c4
cmp eax, dword [ebp + 0xc]
jb 0x5b6ff5b2
cmp dword [esi + 0x30], 0
jne 0x5b6ff5a7
mov ecx, dword [ebx]
test cl, 4
je 0x5b6ff5b2
mov ecx, dword [edi + 0x80]
mov dword [esi + 0x68], ecx
jmp 0x5b6ff5c4
mov ecx, 0xfffffbfe
mov edx, ebx
lock and dword [edx], ecx
and dword [esi + 0x30], 0
and dword [esi + 0x34], 0
cmp dword [esp + 0xc], eax
jge 0x5b6ff5ce
mov dword [esp + 0xc], eax
lea eax, [edi + 0x44]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, 0xfffffdff
lock and dword [ebx], eax
mov esi, dword [esi]
xor ecx, ecx
cmp esi, ecx
jne 0x5b6ff31b
lea ebx, [edi + 0x44]
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
and eax, 1
lea esi, [edi + eax*4 + 0x94]
mov eax, dword [esi]
test eax, eax
je 0x5b6ff64e
mov ecx, dword [esp + 0x2c]
cmp dword [eax + 8], ecx
jne 0x5b6ff624
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [edi + 0x70]
cvttss2si ecx, xmm0
cmp dword [eax + 4], ecx
je 0x5b6ff630
and dword [esi], 0
push dword [eax]
call fcn.5b6fff93
mov eax, dword [esi]
test eax, eax
je 0x5b6ff64e
cmp dword [eax + 0x78], 0
je 0x5b6ff64e
push dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [esp + 0x14], ecx
push eax
call fcn.5b6fce43
cmp dword [esp + 0x10], 1
jne 0x5b6ff662
mov dword [esp + 0x10], 2
jmp 0x5b6ff309
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [ecx + 0xc], eax
cmp dword [esp + 0xc], eax
jne 0x5b6ff694
cmp dword [esp + 0x1c], eax
jne 0x5b6ff694
cmp dword [0x5b72fca4], eax
jne 0x5b6ff694
mov eax, dword [ebp + 0xc]
add dword [edi + 0x104], eax
jmp 0x5b6ff69a
mov dword [edi + 0x104], eax
mov eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10