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

Disassembly:
push 0xffffffffffffffff
push 0x593d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push 0x1b
push str.invalid_vector_T__subscript
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
call fcn.00404250
lea eax, [esp]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 0
call fcn.00404b80
push 0x5bb89c
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x5aa118
call fcn.00479d57
int3
push 0xffffffffffffffff
push 0x593f06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
push esi
push edi
push 0x12
xor esi, esi
push str.attachingdatacount
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
call fcn.00404250
mov ebp, dword [esp + 0xb8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov dword [esp + 0xb8], esi
call fcn.004d1640
mov ebx, eax
mov eax, dword [esp + 0x34]
neg ebx
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0xb0], 0xffffffff
jb 0x51698a
mov edx, dword [esp + 0x20]
push edx
call fcn.004796fd
add esp, 4
test bl, bl
jne 0x516d1a
mov edi, dword [esp + 0xbc]
mov ecx, edi
call fcn.004f4670
mov ecx, dword [esp + 0x14]
sub esp, 0x34
mov eax, esp
mov dword [esp + 0x44], esp
push ecx
mov dword [eax + 0x24], 0xf
mov dword [eax + 0x20], esi
mov ecx, edi
mov byte [eax + 0x10], bl
call fcn.00516820
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x10], ebx
jbe 0x516d1e
mov dword [esp + 0x18], esi
jmp 0x5169e0
mov esi, dword [edi + 4]
test esi, esi
je 0x516d13
mov ecx, dword [edi + 8]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x516d13
mov eax, dword [esp + 0x18]
add esi, eax
xor eax, eax
mov ecx, 0xd
mov edi, esi
push 0xd
rep stosd dword es:[edi], eax
push str.attachingdata
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], eax
mov byte [esp + 0x44], al
call fcn.00404250
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
mov dword [esp + 0xb8], 1
call fcn.004d0860
mov ebx, eax
mov eax, dword [esp + 0x50]
neg ebx
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0xb0], 0xffffffff
jb 0x516a7b
mov edx, dword [esp + 0x3c]
push edx
call fcn.004796fd
add esp, 4
xor edi, edi
test bl, bl
mov eax, 0xf
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
jne 0x516d1a
push 0x11
push str.attachingdatatype
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], bl
call fcn.00404250
push esi
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
mov dword [esp + 0xb8], 2
call fcn.004d1640
mov ebx, eax
mov eax, dword [esp + 0x6c]
neg ebx
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0xb0], 0xffffffff
jb 0x516af4
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004796fd
add esp, 4
test bl, bl
mov eax, 0xf
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
jne 0x516d1a
push 0xb
push str.isattaching
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], edi
mov byte [esp + 0x7c], bl
call fcn.00404250
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
mov dword [esp + 0xb8], 3
call fcn.004d15a0
mov ebx, eax
mov eax, dword [esp + 0x88]
neg ebx
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0xb0], 0xffffffff
jb 0x516b77
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004796fd
add esp, 4
test bl, bl
mov eax, 0xf
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], 0
jne 0x516d1a
push 0x13
push str.attachingmodelindex
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], bl
call fcn.00404250
lea edx, [esi + 8]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0xb8], 4
call fcn.004d1640
mov ebx, eax
mov eax, dword [esp + 0x34]
neg ebx
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0xb0], 0xffffffff
jb 0x516bf7
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004796fd
add esp, 4
test bl, bl
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
jne 0x516d1a
push str.attachingbonename
lea ecx, [esp + 0x90]
call fcn.004050a0
lea edx, [esi + 0xc]
push edx
lea eax, [esp + 0x90]
push eax
mov ecx, ebp
mov dword [esp + 0xb8], 5
call fcn.004d1aa0
mov ebx, eax
mov eax, dword [esp + 0xa4]
neg ebx
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0xb0], 0xffffffff
jb 0x516c6e
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004796fd
add esp, 4
test bl, bl
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], edi
mov byte [esp + 0x90], 0
jne 0x516d1a
mov eax, dword [esi]
dec eax
je 0x516cc7
dec eax
je 0x516cb1
dec eax
jne 0x516ce2
mov ecx, 0x62b204
call fcn.00515e80
push eax
push ebp
mov dword [esi + 0x30], eax
call fcn.00514aa0
jmp 0x516cdb
mov ecx, 0x62b1d8
call fcn.00515df0
push eax
push ebp
mov dword [esi + 0x2c], eax
call fcn.005148a0
jmp 0x516cdb
mov ecx, 0x62b1ac
call fcn.00515d20
push eax
push ebp
mov dword [esi + 0x28], eax
call fcn.00515990
add esp, 8
test eax, eax
je 0x516d1a
mov ecx, ebp
call fcn.004d0510
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
add edx, 0x34
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jae 0x516d1e
mov edi, dword [esp + 0xbc]
mov ebx, eax
jmp 0x5169e0
mov ecx, edi
jmp 0x514b40
xor eax, eax
jmp 0x516d23
mov eax, 1
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret