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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, esp
mov dword [esi + 0x40], ebp
mov edx, ecx
mov dword [esi + 0x44], esp
mov dword [esi + 0x50], 0xffffffff
lea eax, [esi + 0x48]
mov dword [esi + 0x4c], 0x5c4310
mov ecx, dword fs:[0]
mov dword [esi + 0x48], ecx
mov dword fs:[0], eax
mov eax, dword [0xb1b140]
mov dword [esi + 0x10], eax
cmp dword [0xb54388], 0
mov dword [esi + 8], edx
jne 0x5b8731
mov ecx, 0x4f8
call fcn.0053d610
mov dword [esi + 0x50], 0
mov dword [esi + 4], eax
mov ecx, eax
call fcn.00529c80
mov eax, dword [esi + 4]
mov dword [0xb54388], eax
mov edx, dword [esi + 8]
mov eax, dword [0xb54388]
mov dword [esi + 4], eax
mov ecx, dword [eax + 0x370]
lea edi, [edx + 0x218]
mov eax, dword [esi + 8]
mov ebx, dword [eax + 0x14]
mov dword [esi + 0x50], 0xffffffff
call dword [0xb0836c]
push edi
push ebx
mov edi, dword [esi + 8]
call ecx
mov eax, dword [edi + 0x218]
or eax, dword [edi + 0x21c]
je 0x5b87c6
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x364]
add edi, 0x228
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 8]
mov ebx, dword [eax + 0x14]
call dword [0xb0836c]
sub esp, 0x14
movsd xmm0, qword [esi + 0x38]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
call ecx
mov eax, dword [ebx + 0x228]
or eax, dword [ebx + 0x22c]
je 0x5b87db
xor ecx, ecx
mov eax, dword [esi + 0x48]
mov dword fs:[0], eax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x18], 0
test byte [ebx + 0x240], 4
jne 0x5b87f6
lea ecx, [ebx + 0x74]
push dword [ebx + 0x218]
jmp 0x5b8820
mov ecx, dword [ebx + 0x218]
cmp ecx, 0x1000
mov eax, 0x1000
mov edx, 0x1000
cmovb edx, ecx
cmp dword [ebx + 0x21c], 0
cmovs eax, ecx
cmove eax, edx
lea ecx, [ebx + 0x74]
push eax
call fcn.00580310
mov eax, dword [ebx + 0x21c]
mov ecx, 0xfff
add ecx, dword [ebx + 0x218]
adc eax, 0
mov edx, eax
sar edx, 0x1f
shr edx, 0x14
add edx, ecx
adc eax, 0
shld eax, edx, 0x14
cmp dword [ebx + 0xa4], eax
jae 0x5b88cc
lea ecx, [ebx + 0x98]
mov edi, dword [ebx + 0xa0]
test edi, edi
je 0x5b88d4
mov edx, dword [ebx + 0x9c]
mov dword [esi + 0x14], edx
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov byte [ebx + 0xa8], 1
push eax
push 0
call fcn.005c1860
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5b88dc
mov ecx, eax
mov eax, edi
shl eax, 4
add eax, edi
push eax
mov edi, ecx
push ecx
push dword [ebx + 0x9c]
call fcn.0077cce0
add esp, 0xc
mov edx, dword [esi + 0x10]
xor edx, 0x25ec8ec3
mov ecx, edi
call fcn.0053ea00
jmp 0x5b88dc
mov dword [ebx + 0xa0], eax
jmp 0x5b88dc
push eax
push 0
call fcn.005c1860
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x10], eax
mov edi, dword [ebx + 0x7c]
cmp edi, 0x1000
mov ebx, 0x1000
cmovb ebx, edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x35c]
test edi, edi
je 0x5b8906
mov eax, dword [esi + 8]
mov edi, dword [eax + 0x78]
call dword [0xb0836c]
lea eax, [esi + 0x18]
push 0
push eax
push ebx
push edi
push dword [esi + 0x10]
call ecx
test eax, eax
setne cl
je 0x5b8931
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x9c]
mov byte [eax], 1
jmp 0x5b87c8
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 8]
or byte [ecx + 0xc], 0x20
lea eax, [ecx + 0x24c]
cmp dword [ecx + 0x260], 0x10
mov dword [esi + 4], eax
jb 0x5b8953
mov eax, dword [ecx + 0x24c]
mov dword [ecx + 0x25c], 0
mov byte [eax], 0
lea edi, [esi + 0x20]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
movzx eax, byte [0xb1aec0]
cmp al, 0xdc
je 0x5b89f0
mov cl, 0x9e
nop word cs:[eax + eax]
mov al, 0x59
lock cmpxchg byte [0xb1aec0], cl
je 0x5b89a2
cmp al, 0xdc
jne 0x5b8990
jmp 0x5b89f0
movaps xmm0, xmmword [0xb1ae90]
xorps xmm0, xmmword [0xaaaf20]
movaps xmmword [0xb1ae90], xmm0
movaps xmm0, xmmword [0xb1aea0]
xorps xmm0, xmmword [0xaaaf30]
movaps xmmword [0xb1aea0], xmm0
movaps xmm0, xmmword [0xb1aeb0]
xorps xmm0, xmmword [0xaaaf40]
movaps xmmword [0xb1aeb0], xmm0
mov al, 0xdc
xchg byte [0xb1aec0], al
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
sub esp, 0xc
movzx eax, byte [esi + 0xc]
mov byte [esp + 4], al
mov dword [esp + 8], 0xb1ae90
mov dword [esp], 0x2f
mov ecx, edi
call fcn.0052ce20
mov dword [esi + 0x1c], 0x799e70
mov eax, dword [esi + 0x30]
cmp dword [esi + 0x34], 0x10
jb 0x5b8a2b
mov edi, dword [esi + 0x20]
mov dword [esi + 0x10], edi
mov ebx, dword [esi + 8]
mov ecx, dword [ebx + 0x25c]
mov edx, dword [ebx + 0x260]
mov edi, edx
sub edi, ecx
cmp edi, eax
jae 0x5b8a6f
mov dword [esi + 0x50], 2
sub esp, 0x10
movzx ecx, byte [esi + 0xc]
mov byte [esp + 4], cl
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov ecx, dword [esi + 4]
call fcn.0052d5f0
jmp 0x5b8a9c
lea edi, [ecx + eax]
mov dword [ebx + 0x25c], edi
cmp edx, 0x10
jb 0x5b8a86
mov edx, dword [ebx + 0x24c]
mov dword [esi + 4], edx
mov ebx, dword [esi + 4]
add ecx, ebx
push eax
push dword [esi + 0x10]
push ecx
call fcn.0077cce0
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, dword [esi + 0x34]
cmp eax, 0x10
jb 0x5b8acb
mov ecx, dword [esi + 0x20]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x5b8ac6
mov edi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edi
cmp ecx, 0x20
jae 0x5b8ad3
add eax, 0x24
mov edx, eax
mov ecx, edi
call fcn.0053e020
mov ecx, dword [esi + 0x14]
jmp 0x5b87c8
mov dword [esi + 0x50], 1
call fcn.00748ef1
nop
push ebp
sub esp, 0x14
lea esi, [ebp - 0x54]
mov ebp, dword [esi + 0x40]
call fcn.0077ccd0
nop
push ebp
sub esp, 0x14
lea esi, [ebp - 0x54]
mov ebp, dword [esi + 0x40]
lea ecx, [esi + 0x1c]
call fcn.005193a0
add esp, 0x14
pop ebp
ret