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

Disassembly:
push 0xffffffffffffffff
push 0x50a5d1
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe4]
mov eax, dword [ebp + 8]
cmp eax, 0x20
jg 0x4ca92f
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x20
jg 0x4ca92f
xor edi, edi
mov ebx, 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], vtable.CRecordVector_bool_.0
mov dword [esp + 0xdc], edi
mov eax, dword [ebp + 0x30]
add eax, ecx
lea ecx, [esp + 0x14]
call fcn.004ca5f0
xor ecx, ecx
cmp dword [ebp + 0x1c], edi
jle 0x4ca713
mov eax, dword [ebp + 0x20]
lea eax, [eax + ecx*8]
mov eax, dword [eax]
cmp eax, dword [esp + 0x1c]
jae 0x4ca8ff
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x4ca8ff
add ecx, ebx
cmp ecx, dword [ebp + 0x1c]
jl 0x4ca6e7
xor ecx, ecx
cmp dword [ebp + 0x30], edi
jle 0x4ca74c
lea ebx, [ebx]
mov eax, dword [ebp + 0x34]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
cmp eax, dword [esp + 0x1c]
jae 0x4ca8ff
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x4ca8ff
add ecx, ebx
cmp ecx, dword [ebp + 0x30]
jl 0x4ca720
mov eax, dword [ebp + 0x44]
lea ecx, [esp + 0x14]
call fcn.004ca5f0
xor ecx, ecx
cmp dword [ebp + 0x1c], edi
jle 0x4ca78d
nop
mov eax, dword [ebp + 0x20]
lea eax, [eax + ecx*8]
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0x1c]
jae 0x4ca8ff
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x4ca8ff
add ecx, ebx
cmp ecx, dword [ebp + 0x1c]
jl 0x4ca760
mov dword [esp + 0xdc], 0xffffffff
mov eax, dword [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBaseRecordVector.0
call dword [0x5213a4]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004ea5cf
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
xor ecx, ecx
mov esi, 4
mov eax, vtable.CRecordVector_int_.0
add esp, 4
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0xdc], ebx
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], eax
mov byte [esp + 0xdc], 2
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, edi
jle 0x4ca9f3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
xor ebp, ebp
mov dword [esp + 0x50], eax
cmp dword [eax + 0x14], ebp
jbe 0x4ca988
cmp dword [esp + 0x44], ecx
jne 0x4ca967
cmp ecx, 0x40
mov eax, 1
jl 0x4ca94d
mov eax, ecx
shr eax, 2
jmp 0x4ca957
mov dword [esp + 0xdc], 0xffffffff
mov ecx, dword [esp + 0x1c]
push ecx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBaseRecordVector.0
call dword [0x5213a4]
mov edx, dword [esp + 0x20]
push edx
call fcn.004ea5cf
add esp, 4
xor al, al
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 4
cmp ecx, 8
jl 0x4ca957
mov eax, 8
lea edi, [ecx + eax]
lea esi, [esp + 0x3c]
call fcn.004bd4b0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [ecx + edx*4], ebx
inc dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
inc ebp
cmp ebp, dword [eax + 0x14]
jb 0x4ca8e8
mov edx, dword [esp + 0x2c]
xor ebp, ebp
cmp dword [eax + 0x18], ebp
jbe 0x4ca9de
nop
cmp dword [esp + 0x30], edx
jne 0x4ca9c1
cmp edx, 0x40
mov eax, 1
jl 0x4ca9a7
mov eax, edx
shr eax, 2
jmp 0x4ca9b1
cmp edx, 8
jl 0x4ca9b1
mov eax, 8
lea edi, [edx + eax]
lea esi, [esp + 0x28]
call fcn.004bd4b0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ecx + edx*4], ebx
inc dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
inc ebp
cmp ebp, dword [eax + 0x18]
jb 0x4ca990
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xe4]
inc ebx
xor edi, edi
cmp ebx, dword [eax + 8]
mov ebp, eax
jl 0x4ca8d3
mov edi, dword [ebp + 0x1c]
xor ebx, ebx
xor esi, esi
cmp edi, ebx
jle 0x4caa2c
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esp + 0x48]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax + 4]
mov ebp, dword [esp + 0x34]
mov ecx, dword [ebp + ecx*4]
mov ebx, 1
shl ebx, cl
lea edx, [esp + edx*4 + 0x54]
inc esi
add eax, 8
or dword [edx], ebx
cmp esi, edi
jl 0x4caa01
xor ebx, ebx
mov byte [esp + 0xdc], 1
mov edx, dword [esp + 0x30]
push edx
mov esi, vtable.CBaseRecordVector.0
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
call dword [0x5213a4]
mov eax, dword [esp + 0x34]
push eax
call fcn.004ea5cf
mov dword [esp + 0xe0], 0xffffffff
mov ecx, dword [esp + 0x48]
add esp, 4
push ecx
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], esi
call dword [0x5213a4]
mov edx, dword [esp + 0x48]
push edx
call fcn.004ea5cf
add esp, 4
lea eax, [esp + 0x54]
mov edi, 0x20
jmp 0x4caaa0
xor edx, edx
mov ecx, 1
mov esi, dword [eax]
test esi, ecx
je 0x4caab5
mov ebp, dword [esp + edx*4 + 0x54]
or ebp, esi
mov dword [eax], ebp
mov esi, dword [eax]
rol ecx, 1
test esi, ecx
je 0x4caac5
mov ebp, dword [esp + edx*4 + 0x58]
or ebp, esi
mov dword [eax], ebp
mov esi, dword [eax]
rol ecx, 1
test esi, ecx
je 0x4caad5
mov ebp, dword [esp + edx*4 + 0x5c]
or ebp, esi
mov dword [eax], ebp
mov esi, dword [eax]
rol ecx, 1
test esi, ecx
je 0x4caae5
mov ebp, dword [esp + edx*4 + 0x60]
or ebp, esi
mov dword [eax], ebp
add edx, 4
rol ecx, 1
cmp edx, 0x20
jl 0x4caaa7
add eax, 4
sub edi, 1
jne 0x4caaa0
xor ecx, ecx
lea esp, [esp]
mov eax, 1
shl eax, cl
test dword [esp + ecx*4 + 0x54], eax
jne 0x4ca92f
inc ecx
cmp ecx, 0x20
jl 0x4cab00
mov al, 1
jmp 0x4ca931