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

Disassembly:
push 0xffffffffffffffff
push 0x6aa5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov ecx, dword [eax + 0x10]
cmp ecx, 0xffffffff
jne 0x5b04e9
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x5b04d4
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5b04d4
push dword [esi + 0x10]
call fcn.005701e0
add esp, 4
xorps xmm0, xmm0
xor al, al
movdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
jmp 0x5b084d
test ecx, ecx
jne 0x5b04fa
push eax
mov ecx, esi
call fcn.005b0300
jmp 0x5b084d
mov ecx, dword [eax]
xor esi, esi
mov dword [esp + 0xc], ecx
xor edi, edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x70], 1
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
cmp ecx, 0x400
jle 0x5b0545
mov ecx, 0x400
jmp 0x5b0549
test ecx, ecx
jle 0x5b057b
lea edi, [ecx + 4]
mov eax, edi
mov dword [esp + 0x38], edi
cdq
and edx, 3
add eax, edx
sar eax, 2
add edi, eax
mov dword [esp + 0x38], edi
lea eax, [edi*8]
push eax
push 0
call fcn.00570270
mov dword [esp + 0x3c], eax
add esp, 8
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
shl ecx, 7
cmp ecx, 0x10000
jle 0x5b0592
mov ecx, 0x10000
jmp 0x5b0596
test ecx, ecx
jle 0x5b05c1
add ecx, 4
mov eax, ecx
mov dword [esp + 0x24], ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add ecx, eax
push ecx
push 0
mov dword [esp + 0x2c], ecx
call fcn.00570270
mov dword [esp + 0x28], eax
add esp, 8
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
call fcn.0058ef80
xor ecx, ecx
mov dword [esp + 0x30], 0
xor edx, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x60], cl
jne 0x5b077c
lea esp, [esp]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp eax, edx
jle 0x5b071b
test ecx, ecx
je 0x5b0629
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
sub eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005ae490
mov edx, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
cmp eax, edx
jle 0x5b06ad
mov edx, esi
inc esi
mov dword [esp + 0x2c], edx
cmp esi, edi
jle 0x5b0680
lea edi, [esi + 4]
mov eax, edi
mov dword [esp + 0x38], edi
cdq
and edx, 3
add eax, edx
sar eax, 2
add edi, eax
mov dword [esp + 0x38], edi
lea eax, [edi*8]
push eax
push dword [esp + 0x38]
call fcn.00570270
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x4c]
add esp, 8
mov dword [esp + 0x34], ecx
jmp 0x5b0684
mov ecx, dword [esp + 0x34]
dec eax
mov dword [esp + 0x3c], esi
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
push eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005ae490
add esp, 0xc
mov dword [esp + 0x44], esi
inc esi
mov dword [esp + 0x1c], esi
cmp esi, edi
jle 0x5b06ec
lea ecx, [esi + 4]
mov eax, ecx
mov dword [esp + 0x38], ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add ecx, eax
mov dword [esp + 0x38], ecx
lea eax, [ecx*8]
push eax
push dword [esp + 0x38]
call fcn.00570270
add esp, 8
mov dword [esp + 0x34], eax
jmp 0x5b06f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
lea edx, [eax + ecx*8]
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], ecx
lea eax, [ecx - 1]
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], eax
mov edi, dword [esp + 0x50]
sub edi, dword [esp + 0xc]
mov eax, edi
sub eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005ae490
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x2c]
sub esi, dword [esp + 0x5c]
push esi
push 0xff
push eax
call fcn.005ae490
add esp, 0x18
lea eax, [esi + edi]
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], eax
call fcn.0058fab0
cmp byte [esp + 0x60], 0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
je 0x5b05f0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
sub eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005ae490
mov edi, dword [esp + 0x34]
shl esi, 3
lea eax, [edi + 0xc]
add eax, esi
push eax
call fcn.00570240
mov ecx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x48]
mov dword [eax + 4], ecx
lea ecx, [eax + 0xc]
push esi
push ecx
mov dword [esp + 0x60], eax
mov dword [eax], 1
mov dword [eax + 8], edi
call fcn.00549620
mov ecx, dword [esp + 0x60]
push edi
push dword [esp + 0x40]
mov eax, dword [ecx + 4]
lea eax, [eax*8 + 0xc]
add eax, ecx
push eax
call fcn.00549620
mov edi, dword [esp + 0x38]
add esp, 0x28
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x5b080b
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5b080b
push dword [edi + 0x10]
call fcn.005701e0
add esp, 4
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movdqu xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 0x44]
mov dword [edi + 0x10], eax
movdqu xmmword [edi], xmm0
mov byte [esp + 0x70], 0
push dword [esp + 0x20]
call fcn.005701e0
mov dword [esp + 0x74], 0xffffffff
push esi
call fcn.005701e0
add esp, 8
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005472b9
add esp, 0x68
ret 4