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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541a10
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x58313c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x5c]
mov dword [esi], vtable.juce::Component.0
mov eax, dword [edi + 8]
lea edx, [edi + 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edx
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 0x14], 1
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jle 0x4af9e1
mov edx, dword [ebp - 0x24]
dec ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], ecx
cmp ecx, eax
jl 0x4af9d4
lea ecx, [eax - 1]
mov eax, ecx
mov dword [ebp - 0x20], ecx
shr eax, 0x1f
xor al, 1
je 0x4af9e1
mov eax, dword [edx]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x4af9b0
cmp byte [ebp - 0x14], 0
je 0x4af9ef
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
cmp dword [esi + 0x3c], 0
jle 0x4afa0b
mov eax, dword [esi + 0x3c]
mov ecx, esi
push 1
push 0
dec eax
push eax
call fcn.004fd120
cmp dword [esi + 0x3c], 0
jg 0x4af9f5
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4afa19
mov dword [eax + 8], 0
mov edx, dword [esi + 0x18]
test edx, edx
je 0x4afa5f
mov ebx, dword [edx + 0x34]
mov ecx, ebx
mov eax, dword [edx + 0x3c]
lea eax, [ebx + eax*4]
cmp ecx, eax
je 0x4afa3b
nop
cmp esi, dword [ecx]
je 0x4afa4c
add ecx, 4
cmp ecx, eax
jne 0x4afa30
push 0
or ecx, 0xffffffff
push 1
push ecx
mov ecx, edx
call fcn.004fd120
jmp 0x4afa8d
sub ecx, ebx
push 0
sar ecx, 2
push 1
push ecx
mov ecx, edx
call fcn.004fd120
jmp 0x4afa8d
mov eax, dword [0x589a18]
test eax, eax
je 0x4afa7f
nop dword [eax + eax]
mov eax, dword [eax + 0x18]
cmp eax, esi
je 0x4afbe2
test eax, eax
jne 0x4afa70
mov byte [ebp - 0x10], 0
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004e3270
test byte [esi + 0x80], 1
je 0x4afa9d
mov ecx, esi
call fcn.004fd500
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x4afaaa
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x78]
or ebx, 0xffffffff
test ecx, ecx
je 0x4afac4
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4afac4
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esi + 0x6c]
call fcn.0040f060
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4afade
mov byte [eax + 0x10], 0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4afad3
push dword [edi]
mov dword [edi + 8], 0
call fcn.00518201
mov edi, dword [esi + 0x58]
add esp, 4
test edi, edi
je 0x4afb0f
push dword [edi]
mov dword [edi + 8], 0
call fcn.00518201
push 0xc
push edi
call fcn.005128a7
add esp, 0xc
mov edi, dword [esi + 0x54]
test edi, edi
je 0x4afb2f
push dword [edi]
mov dword [edi + 8], 0
call fcn.00518201
push 0x10
push edi
call fcn.005128a7
add esp, 0xc
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x4afb3c
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x4afb62
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4afb62
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x4afb62
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4afb77
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x4afb77
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [esi + 0x34]
mov dword [esi + 0x3c], 0
call fcn.00518201
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
je 0x4afb9b
push 0x18
push eax
call fcn.005128a7
add esp, 8
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4afba8
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esi + 0x14]
call fcn.0040e7a0
lea ecx, [esi + 0x10]
call fcn.0040e7a0
lea ecx, [esi + 0xc]
call fcn.0040e7a0
lea ecx, [esi + 8]
call fcn.0040e7a0
lea ecx, [esi + 4]
call fcn.0040e7a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x10], 1
jmp 0x4afa83