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

Disassembly:
sub esp, 0xa8
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, vtable.Field_iterator_table_ref.0
mov eax, vtable.Field_iterator_natural_join.0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0xb8]
mov ecx, vtable.Field_iterator_view.0
mov edx, vtable.Field_iterator_table.0
mov dword [esp + 0x44], eax
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0xa88]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], vtable.Query_arena.0
cmp dword [eax + 0xc], 3
mov dword [esp + 0xc], 1
je 0x508b89
mov ecx, dword [esi + 0x14]
cmp ecx, dword [eax + 8]
je 0x508b89
lea edx, [esp + 0xa4]
push edx
push eax
mov ecx, esi
call fcn.004033d2
mov eax, dword [esi + 0xa88]
mov dword [esp + 0x14], eax
jmp 0x508b8d
mov dword [esp + 0x14], ebx
push 0xc
call fcn.0040105a
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x508e3b
push 0xc
mov dword [ebp + 8], ebx
mov dword [ebp], 0x837188
mov dword [ebp + 4], ebp
call fcn.0040105a
add esp, 4
cmp eax, ebx
je 0x508bce
mov dword [eax + 8], ebx
mov dword [eax], 0x837188
mov dword [eax + 4], eax
jmp 0x508bd0
xor eax, eax
cmp eax, ebx
mov ecx, dword [esp + 0xbc]
mov dword [ecx + 0x38], eax
je 0x508e3b
mov edx, dword [esp + 0xc0]
push edx
lea ecx, [esp + 0x20]
call fcn.0040a56a
push edi
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x2c]
jne 0x508c0f
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
jne 0x508ca1
lea ecx, [esp + 0x20]
call fcn.00403229
mov edi, eax
cmp dword [edi + 0xc], ebx
push 8
je 0x508c66
mov eax, dword [esp + 0xc4]
mov esi, dword [eax + 0x38]
call fcn.0040105a
add esp, 4
cmp eax, ebx
je 0x508c42
mov dword [eax], 0x837188
mov dword [eax + 4], edi
jmp 0x508c44
xor eax, eax
cmp eax, ebx
mov ecx, dword [esi + 4]
mov dword [ecx], eax
je 0x508c58
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov dword [esi + 4], eax
inc dword [esi + 8]
lea ecx, [esp + 0x20]
mov dword [edi + 0xc], ebx
call fcn.00406cf3
jmp 0x508bf4
call fcn.0040105a
add esp, 4
cmp eax, ebx
je 0x508c7d
mov dword [eax], 0x837188
mov dword [eax + 4], edi
jmp 0x508c7f
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 4]
mov dword [ecx], eax
je 0x508c93
mov edx, dword [ebp + 4]
mov eax, dword [edx]
mov dword [ebp + 4], eax
inc dword [ebp + 8]
lea ecx, [esp + 0x20]
call fcn.00406cf3
jmp 0x508bf4
mov eax, dword [esp + 0xcc]
cmp eax, ebx
je 0x508d37
mov ecx, dword [esp + 0xd0]
cmp ecx, dword [eax + 8]
jae 0x508d37
mov eax, dword [eax]
mov esi, dword [eax + 4]
cmp esi, ebx
mov dword [esp + 0x14], eax
je 0x508d37
lea esp, [esp]
mov eax, dword [esi]
cmp eax, ebx
je 0x508cde
mov edx, dword [esi + 4]
cmp byte [eax + edx], bl
je 0x508ce9
mov eax, dword [esi + 4]
push eax
mov ecx, esi
call fcn.0040a849
mov ecx, dword [esp + 0xc0]
mov esi, dword [esi]
mov edi, dword [ecx + 0x38]
mov edi, dword [edi]
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x508d97
mov edx, dword [0x9749e0]
mov ebp, dword [edx + 0x68]
push esi
call fcn.0040b66d
push eax
mov eax, dword [0x9749e0]
push eax
call dword [ebp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x508cf5
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp esi, ebx
mov dword [esp + 0x14], eax
jne 0x508cd0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc8]
push ecx
lea ecx, [esp + 0x68]
call fcn.0040a56a
jmp 0x508d50
mov edx, dword [esp + 0x68]
cmp edx, dword [esp + 0x70]
jne 0x508d6e
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x508dfd
lea ecx, [esp + 0x64]
call fcn.00403229
mov esi, eax
cmp dword [esi + 0xc], ebx
jne 0x508dec
push 8
call fcn.0040105a
add esp, 4
cmp eax, ebx
je 0x508dc4
mov dword [eax], 0x837188
mov dword [eax + 4], esi
jmp 0x508dc6
mov edx, dword [0x9798bc]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 0x108]
mov eax, dword [edx + 0x8d4]
push eax
push esi
push ebx
push 0x41e
call fcn.005db890
add esp, 0x10
jmp 0x508e3a
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 4]
mov dword [ecx], eax
je 0x508def
mov edx, dword [ebp + 4]
mov eax, dword [edx]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 8]
inc eax
lea ecx, [esp + 0x64]
mov dword [ebp + 8], eax
call fcn.00406cf3
jmp 0x508d50
mov dword [esi + 0xc], ebx
lea ecx, [esp + 0x64]
call fcn.00406cf3
jmp 0x508d50
cmp dword [ebp + 8], ebx
jbe 0x508e28
mov ecx, dword [esp + 0xc0]
mov eax, dword [ecx + 0x38]
mov ecx, dword [ebp]
cmp ecx, 0x837188
je 0x508e28
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
add dword [eax + 8], edx
mov eax, dword [esp + 0xc0]
mov dword [eax + 0x3c], 1
mov dword [esp + 0x10], ebx
pop edi
mov eax, dword [esp + 0x14]
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x508e5b
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0xb0]
push eax
call fcn.00406d52
mov eax, dword [esp]
add esp, 0xa8
ret