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

Disassembly:
push 0xffffffffffffffff
push 0x50ad51
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
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 0x4cb1bf
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x20
jg 0x4cb1bf
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.004cae80
xor ecx, ecx
cmp dword [ebp + 0x1c], edi
jle 0x4cafa3
mov eax, dword [ebp + 0x20]
lea eax, [eax + ecx*8]
mov eax, dword [eax]
cmp eax, dword [esp + 0x1c]
jae 0x4cb18f
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x4cb18f
add ecx, ebx
cmp ecx, dword [ebp + 0x1c]
jl 0x4caf77
xor ecx, ecx
cmp dword [ebp + 0x30], edi
jle 0x4cafdc
lea ebx, [ebx]
mov eax, dword [ebp + 0x34]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
cmp eax, dword [esp + 0x1c]
jae 0x4cb18f
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x4cb18f
add ecx, ebx
cmp ecx, dword [ebp + 0x30]
jl 0x4cafb0
mov eax, dword [ebp + 0x44]
lea ecx, [esp + 0x14]
call fcn.004cae80
xor ecx, ecx
cmp dword [ebp + 0x1c], edi
jle 0x4cb01d
nop
mov eax, dword [ebp + 0x20]
lea eax, [eax + ecx*8]
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0x1c]
jae 0x4cb18f
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x4cb18f
add ecx, ebx
cmp ecx, dword [ebp + 0x1c]
jl 0x4caff0
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 [0x52267c]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004eacff
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 0x4cb283
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 0x4cb218
cmp dword [esp + 0x44], ecx
jne 0x4cb1f7
cmp ecx, 0x40
mov eax, 1
jl 0x4cb1dd
mov eax, ecx
shr eax, 2
jmp 0x4cb1e7
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 [0x52267c]
mov edx, dword [esp + 0x20]
push edx
call fcn.004eacff
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 0x4cb1e7
mov eax, 8
lea edi, [ecx + eax]
lea esi, [esp + 0x3c]
call fcn.004bdd40
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 0x4cb178
mov edx, dword [esp + 0x2c]
xor ebp, ebp
cmp dword [eax + 0x18], ebp
jbe 0x4cb26e
nop
cmp dword [esp + 0x30], edx
jne 0x4cb251
cmp edx, 0x40
mov eax, 1
jl 0x4cb237
mov eax, edx
shr eax, 2
jmp 0x4cb241
cmp edx, 8
jl 0x4cb241
mov eax, 8
lea edi, [edx + eax]
lea esi, [esp + 0x28]
call fcn.004bdd40
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 0x4cb220
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xe4]
inc ebx
xor edi, edi
cmp ebx, dword [eax + 8]
mov ebp, eax
jl 0x4cb163
mov edi, dword [ebp + 0x1c]
xor ebx, ebx
xor esi, esi
cmp edi, ebx
jle 0x4cb2bc
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 0x4cb291
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 [0x52267c]
mov eax, dword [esp + 0x34]
push eax
call fcn.004eacff
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 [0x52267c]
mov edx, dword [esp + 0x48]
push edx
call fcn.004eacff
add esp, 4
lea eax, [esp + 0x54]
mov edi, 0x20
jmp 0x4cb330
xor edx, edx
mov ecx, 1
mov esi, dword [eax]
test esi, ecx
je 0x4cb345
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 0x4cb355
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 0x4cb365
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 0x4cb375
mov ebp, dword [esp + edx*4 + 0x60]
or ebp, esi
mov dword [eax], ebp
add edx, 4
rol ecx, 1
cmp edx, 0x20
jl 0x4cb337
add eax, 4
sub edi, 1
jne 0x4cb330
xor ecx, ecx
lea esp, [esp]
mov eax, 1
shl eax, cl
test dword [esp + ecx*4 + 0x54], eax
jne 0x4cb1bf
inc ecx
cmp ecx, 0x20
jl 0x4cb390
mov al, 1
jmp 0x4cb1c1