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

Disassembly:
push 0xffffffffffffffff
push 0x44c0c1
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
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 0x40d47f
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x20
jg 0x40d47f
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.0040d140
xor ecx, ecx
cmp dword [ebp + 0x1c], edi
jle 0x40d263
mov eax, dword [ebp + 0x20]
lea eax, [eax + ecx*8]
mov eax, dword [eax]
cmp eax, dword [esp + 0x1c]
jae 0x40d44f
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x40d44f
add ecx, ebx
cmp ecx, dword [ebp + 0x1c]
jl 0x40d237
xor ecx, ecx
cmp dword [ebp + 0x30], edi
jle 0x40d29c
lea ebx, [ebx]
mov eax, dword [ebp + 0x34]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
cmp eax, dword [esp + 0x1c]
jae 0x40d44f
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x40d44f
add ecx, ebx
cmp ecx, dword [ebp + 0x30]
jl 0x40d270
mov eax, dword [ebp + 0x44]
lea ecx, [esp + 0x14]
call fcn.0040d140
xor ecx, ecx
cmp dword [ebp + 0x1c], edi
jle 0x40d2dd
nop
mov eax, dword [ebp + 0x20]
lea eax, [eax + ecx*8]
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0x1c]
jae 0x40d44f
mov esi, dword [esp + 0x20]
mov dl, byte [esi + eax]
mov byte [esi + eax], 1
test dl, dl
jne 0x40d44f
add ecx, ebx
cmp ecx, dword [ebp + 0x1c]
jl 0x40d2b0
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 [0x451d8c]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00438e02
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 0x40d543
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 0x40d4d8
cmp dword [esp + 0x44], ecx
jne 0x40d4b7
cmp ecx, 0x40
mov eax, 1
jl 0x40d49d
mov eax, ecx
shr eax, 2
jmp 0x40d4a7
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 [0x451d8c]
mov edx, dword [esp + 0x20]
push edx
call fcn.00438e02
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 0x40d4a7
mov eax, 8
lea edi, [ecx + eax]
lea esi, [esp + 0x3c]
call fcn.004175b0
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 0x40d438
mov edx, dword [esp + 0x2c]
xor ebp, ebp
cmp dword [eax + 0x18], ebp
jbe 0x40d52e
nop
cmp dword [esp + 0x30], edx
jne 0x40d511
cmp edx, 0x40
mov eax, 1
jl 0x40d4f7
mov eax, edx
shr eax, 2
jmp 0x40d501
cmp edx, 8
jl 0x40d501
mov eax, 8
lea edi, [edx + eax]
lea esi, [esp + 0x28]
call fcn.004175b0
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 0x40d4e0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xe4]
inc ebx
xor edi, edi
cmp ebx, dword [eax + 8]
mov ebp, eax
jl 0x40d423
mov edi, dword [ebp + 0x1c]
xor ebx, ebx
xor esi, esi
cmp edi, ebx
jle 0x40d57c
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 0x40d551
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 [0x451d8c]
mov eax, dword [esp + 0x34]
push eax
call fcn.00438e02
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 [0x451d8c]
mov edx, dword [esp + 0x48]
push edx
call fcn.00438e02
add esp, 4
lea eax, [esp + 0x54]
mov edi, 0x20
jmp 0x40d5f0
xor edx, edx
mov ecx, 1
mov esi, dword [eax]
test esi, ecx
je 0x40d605
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 0x40d615
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 0x40d625
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 0x40d635
mov ebp, dword [esp + edx*4 + 0x60]
or ebp, esi
mov dword [eax], ebp
add edx, 4
rol ecx, 1
cmp edx, 0x20
jl 0x40d5f7
add eax, 4
sub edi, 1
jne 0x40d5f0
xor ecx, ecx
lea esp, [esp]
mov eax, 1
shl eax, cl
test dword [esp + ecx*4 + 0x54], eax
jne 0x40d47f
inc ecx
cmp ecx, 0x20
jl 0x40d650
mov al, 1
jmp 0x40d481