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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [edx + 0x58]
mov dword [esp + 0x40], eax
lock inc dword [eax]
jle 0x4af5f3
mov eax, dword [edx + 0x5c]
mov ebx, edx
mov dword [esp + 0x3c], eax
lock inc dword [eax]
jle 0x4af5f3
mov eax, dword [ebx + 0x68]
test eax, eax
mov dword [esp + 8], eax
js 0x4af5f3
mov esi, dword [ebx + 0x64]
mov edi, ecx
je 0x4af46a
movzx eax, byte [0xfd520d]
mov edx, dword [esp + 8]
xor ecx, ecx
call fcn.00494530
test eax, eax
jne 0x4af46f
jmp 0x4af5f3
mov eax, 1
push dword [esp + 8]
push esi
mov dword [esp + 0x40], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x18]
test eax, eax
mov dword [esp + 4], eax
js 0x4af5f3
mov esi, dword [ebx + 0x14]
je 0x4af4b0
movzx eax, byte [0xfd520d]
mov edx, dword [esp + 4]
xor ecx, ecx
call fcn.00494530
test eax, eax
jne 0x4af4b5
jmp 0x4af5f3
mov eax, 1
push dword [esp + 4]
push esi
mov dword [esp + 0x3c], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [ebx + 0x74]
cmp esi, 0xfffffff
ja 0x4af5f3
mov ebp, esi
shl ebp, 4
cmp ebp, 0x7ffffffd
jae 0x4af5f3
movzx eax, word [ebx + 0x1c]
movups xmm0, xmmword [ebx + 0x20]
mov edx, dword [ebx + 0xc]
movzx ecx, byte [ebx + 0x78]
test ebp, ebp
mov word [esp + 0x12], ax
movzx eax, word [ebx + 0x1e]
movups xmmword [esp + 0x54], xmm0
mov dword [esp + 0x20], edx
mov byte [esp + 3], cl
mov word [esp + 0x10], ax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], eax
je 0x4af603
mov eax, dword [ebx + 0x70]
xor ecx, ecx
mov edx, ebp
mov dword [esp + 0xc], eax
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x4af5f3
mov edx, eax
test esi, esi
je 0x4af608
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ebp
jmp 0x4af5b9
mov ebp, 1
push edi
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x48]
mov eax, dword [eax + 0xc]
mov dword [edx + ebx], edi
mov dword [edx + ebx + 4], ebp
mov dword [edx + ebx + 8], edi
mov ebp, dword [esp + 0x44]
mov dword [edx + ebx + 0xc], eax
mov eax, dword [esp + 0x50]
add ebx, 0x10
test esi, esi
je 0x4af5f5
cmp ebp, ebx
je 0x4af5f5
mov edi, dword [eax + 8]
dec esi
lea ecx, [eax + 0x10]
test edi, edi
js 0x4af5f3
mov dword [esp + 0xc], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x50], ecx
je 0x4af580
mov dword [esp + 0x4c], eax
xor ecx, ecx
mov edx, edi
movzx eax, byte [0xfd520d]
call fcn.00494530
mov ebp, eax
mov eax, dword [esp + 0x4c]
test ebp, ebp
jne 0x4af585
ud2
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x4af608
mov edx, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
movups xmm0, xmmword [esp + 0x54]
movsd xmm1, qword [ebx + 0x3c]
mov dword [edi + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x5c], eax
mov eax, dword [esp + 8]
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [edi], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 4]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
movzx eax, word [esp + 0x12]
mov ecx, dword [ebx + 0x4c]
mov word [edi + 0x1c], ax
movzx eax, word [esp + 0x10]
mov word [edi + 0x1e], ax
mov eax, dword [esp + 0x30]
movups xmmword [edi + 0x20], xmm0
movsd xmm0, qword [ebx + 0x34]
mov dword [edi + 0x30], eax
movzx eax, byte [ebx + 0x44]
movsd qword [edi + 0x3c], xmm1
movsd qword [edi + 0x34], xmm0
mov byte [edi + 0x44], al
movzx eax, byte [esp + 3]
mov byte [edi + 0x78], al
mov dword [edi + 0x6c], esi
mov dword [edi + 0x70], edx
mov dword [edi + 0x74], esi
mov dword [edi + 0x4c], ecx
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x50]
mov dword [edi + 0x48], edx
mov dword [edi + 0x50], ecx
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret