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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x30]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov eax, dword [eax]
push 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push 0x21
mov esi, dword [eax + 8]
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
call fcn.004806e0
add esp, 0x14
test eax, eax
jne 0x46fda2
push ebx
mov ebx, dword [esi + 0x18]
mov ecx, dword [ebx + 0x74]
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x46f70f
push 0
lea eax, [ecx*8 + 4]
push eax
push dword [ebx + 0x78]
push dword [ebx]
call fcn.00487ad0
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x46f71d
mov dword [eax + ecx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ecx
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.004661c0
mov eax, dword [edi + 0x38]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov edx, dword [ebx]
mov dword [ebp - 4], eax
add esp, 0xc
xor eax, eax
test edx, edx
jle 0x46f79b
lea ecx, [ebx + 0x30]
lea ebx, [ebx]
test byte [ecx], 0x20
jne 0x46f78f
inc eax
add ecx, 0x50
cmp eax, edx
jl 0x46f780
jmp 0x46f79b
lea eax, [eax + eax*4]
add eax, eax
mov eax, dword [ebx + eax*8 + 0x38]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [edx + 0x48]
lea eax, [ebx + 1]
mov dword [edx + 0x48], eax
cmp byte [edi + 4], 0x73
jne 0x46f7c5
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x18], eax
setne cl
inc eax
mov dword [edx + 0x48], eax
lea ecx, [ecx*2 + 6]
jmp 0x46f7d2
cmp dword [ebp - 4], ecx
setne cl
lea ecx, [ecx*2 + 5]
inc dword [edx + 0x4c]
mov eax, dword [edx + 0x4c]
mov byte [ebp - 0x44], cl
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x43], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [esi + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46f817
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x6c
push esi
call fcn.00470460
mov edx, dword [ebp + 8]
add esp, 0x14
jmp 0x46f84e
mov edi, dword [ebp - 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp - 8]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp - 0x14]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [ebp + 0xc]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp - 4], 0
je 0x46f92a
push 1
push edi
push edx
call fcn.00474760
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add esp, 0xc
mov eax, dword [eax]
add eax, 2
mov dword [ebp - 0x20], eax
cmp dword [ecx + 0x58], edx
jg 0x46f890
push 0
push eax
push ebx
push 0x69
push esi
call fcn.00470460
add esp, 0x14
mov edx, eax
jmp 0x46f8c5
mov edi, dword [ebp - 0x20]
lea ecx, [edx + edx*4]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp + 0xc]
mov word [eax + ecx*4], 0x69
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x46f8e7
mov ecx, dword [ebp - 0x14]
push ecx
push 0xfffffffffffffffa
push eax
call fcn.0046e1f0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x34], eax
jmp 0x46f97a
test edx, edx
jns 0x46f8ef
mov edx, dword [esi + 0x20]
dec edx
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x14]
je 0x46f917
push 0xfffffffffffffffa
push ecx
push eax
push esi
call fcn.004b7760
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [ebp - 0x34], eax
jmp 0x46f97a
test ecx, ecx
je 0x46f922
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfa
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
jmp 0x46f97a
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46f948
push 0
push dword [ebp - 0x14]
push ebx
push 0x69
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46f97a
mov edx, dword [ebp - 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x69
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x46f9e0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x46f9a0
push 0
push 0
push ecx
push 0x69
push esi
call fcn.00470460
add esp, 0x14
mov edx, eax
jmp 0x46f9d9
mov edi, dword [ebp - 0x18]
lea ecx, [edx + edx*4]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp + 0xc]
mov word [eax + ecx*4], 0x69
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x14], edx
or dword [edi + 8], 0x20
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push ecx
push eax
push dword [ebp + 8]
mov dword [edi + 0x2c], 0
mov dword [eax + 0x34], 0
call fcn.0049d650
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ecx + 0x34], edi
test eax, eax
jne 0x46fd7a
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov dword [ebp + 0xc], edx
cmp dword [eax + 0x58], edx
jg 0x46fa34
mov edx, dword [ebp - 0x10]
push 0
push edx
push ebx
push 0x37
push esi
call fcn.00470460
add esp, 0x14
mov dword [ebp + 0xc], eax
jmp 0x46fa66
lea ecx, [edx + edx*4]
lea eax, [edx + 1]
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x37
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46fa85
push 0
push 0
push dword [ebp - 0xc]
push 0x7a
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46fabb
mov edx, dword [ebp - 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x7a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x20]
test eax, eax
je 0x46fb01
mov edx, dword [eax]
mov eax, dword [esi + 0x18]
inc edx
cmp dword [eax + 0x58], ecx
jg 0x46fae2
push dword [ebp - 8]
push edx
push ebx
push 0x5e
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46fb4e
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp - 8]
mov word [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x46fb3d
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46fb1c
push 0
push dword [ebp - 8]
push ebx
push 0x78
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46fb4e
mov edx, dword [ebp - 8]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 4], ebx
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46fb6b
push 0
push 0
push ebx
push 0x73
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46fb9e
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x73
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x20], ecx
mov ebx, dword [ecx + 0x74]
lea eax, [ebx + 1]
mov dword [ecx + 0x74], eax
lea eax, [ebx - 1]
test ebx, eax
jne 0x46fbd1
push 0
lea eax, [ebx*8 + 4]
push eax
push dword [ecx + 0x78]
push dword [ecx]
call fcn.00487ad0
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x46fbdf
mov dword [eax + ebx*4], 0xffffffff
or edx, 0xffffffff
sub edx, ebx
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
test ebx, ebx
jle 0x46fc3c
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46fc0d
push 1
push edx
push ebx
push 0x40
push esi
call fcn.00470460
mov edx, dword [ebp - 0x18]
add esp, 0x14
jmp 0x46fc3c
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x40
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push edx
push dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 0xc]
push dword [edi]
push edi
push ebx
call fcn.0047d9c0
mov edx, dword [ebp - 0x28]
add esp, 0x24
test edx, edx
je 0x46fcb0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46fc7e
push 0
push dword [ebp - 0x10]
push edx
push 0x42
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46fcb0
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x10]
mov word [eax + ecx*4], 0x42
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x46fccb
mov eax, dword [ebp - 0x18]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
test byte [edi + 8], 8
je 0x46fce8
push str.recursive_aggregate_queries_not_supported
push ebx
call fcn.004894e0
add esp, 8
jmp 0x46fd03
lea eax, [ebp - 0x44]
push eax
push edi
push ebx
mov dword [edi + 0x30], 0
call fcn.0049d650
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp + 0xc]
cmp dword [eax + 0x58], ecx
jg 0x46fd23
push 0
push edx
push 0
push 0xd
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46fd56
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x46fd71
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
jmp 0x46fd7d
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x46fd8f
push eax
push dword [ebx]
call fcn.0046af50
add esp, 8
mov eax, dword [ebp - 4]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x3c], eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret