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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx]
mov edx, dword [ecx]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x30]
push edi
mov edi, dword [esi + 8]
mov dword [esp + 0x24], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
push 0x21
mov eax, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], edi
call fcn.0045ba50
add esp, 0x10
test eax, eax
jne 0x473861
mov eax, edi
call fcn.00440ff0
push eax
mov dword [esp + 0x20], eax
push ebx
mov eax, esi
call fcn.00473170
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x48], edx
xor edx, edx
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0xc], edx
mov ecx, dword [ecx]
mov dword [esp + 0x18], eax
add esp, 8
xor eax, eax
cmp ecx, edx
jle 0x4734da
mov edx, dword [esp + 0x18]
add edx, 0x30
test byte [edx], 0x20
jne 0x4734c6
inc eax
add edx, 0x50
cmp eax, ecx
jl 0x4734b7
jmp 0x4734d8
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x18]
shl edx, 4
mov ecx, dword [edx + eax + 0x38]
mov dword [esp + 0x14], ecx
xor edx, edx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0xc], ecx
inc ecx
mov dword [esi + 0x48], ecx
xor eax, eax
cmp byte [ebx + 4], 0x73
jne 0x473502
cmp dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
setne al
inc ecx
mov dword [esi + 0x48], ecx
lea eax, [eax + eax + 6]
jmp 0x47350d
cmp dword [esp + 0x10], edx
setne al
lea eax, [eax + eax + 5]
inc dword [esi + 0x4c]
mov ecx, dword [esi + 0x4c]
mov byte [esp + 0x44], al
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov byte [esp + 0x45], 0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov eax, dword [edi + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x47355a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push 0x3c
mov eax, edi
call fcn.00440c50
add esp, 0x10
xor edx, edx
jmp 0x47358c
lea ecx, [eax + 1]
mov dword [edi + 0x20], ecx
mov ecx, dword [edi + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x3c
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
cmp dword [esp + 0x10], edx
je 0x473629
push ebx
push esi
call fcn.004732f0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
push 0
add eax, 2
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0x39
push edi
call fcn.00440c90
mov edx, dword [edi]
add esp, 0x1c
cmp byte [edx + 0x45], 0
je 0x4735dd
mov ecx, dword [esp + 0x20]
mov eax, 0xfffffffa
call fcn.00441340
mov edx, dword [esp + 0x10]
mov dword [esp + 0x54], edx
jmp 0x47363f
test eax, eax
jge 0x4735e5
mov eax, dword [edi + 0x20]
dec eax
mov edx, dword [edi + 4]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x20]
je 0x473614
push ecx
push eax
mov eax, 0xfffffffa
mov ecx, edi
call fcn.00441530
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x54], edx
jmp 0x47363f
test ecx, ecx
je 0x47361f
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfa
mov edx, dword [esp + 0x10]
mov dword [esp + 0x54], edx
jmp 0x47363f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
push 0x39
push edi
call fcn.00440c90
add esp, 0x14
mov eax, dword [esp + 0x28]
test eax, eax
je 0x47365e
push 0
push 0
push eax
push 0x39
push edi
call fcn.00440c90
add esp, 0x14
or dword [ebx + 8], 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
xor ecx, ecx
push eax
mov dword [ebx + 0x2c], ecx
push esi
mov dword [eax + 0x34], ecx
call fcn.004778c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [ecx + 0x34], ebx
test eax, eax
jne 0x47383d
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push 0x6c
push edi
call fcn.00440c90
mov ecx, dword [esp + 0x28]
add esp, 0x14
push 0
push 0
push ecx
push 0x68
push edi
mov dword [esp + 0x4c], eax
call fcn.00440c90
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
je 0x4736d0
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
push edx
inc eax
push eax
push ecx
push 0x2f
jmp 0x4736da
mov eax, dword [esp + 0xc]
push 0
push edx
push eax
push 0x66
push edi
call fcn.00440c90
mov ecx, dword [esp + 0x20]
add esp, 0x14
push 0
push 0
push ecx
push 0x5f
push edi
call fcn.00440c90
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 0x74]
lea edx, [ecx + 1]
mov dword [eax + 0x74], edx
lea edx, [ecx - 1]
add esp, 0x14
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
test ecx, edx
jne 0x47373d
mov edi, dword [eax + 0x78]
mov esi, dword [eax]
lea ecx, [ecx*8 + 4]
push 0
push ecx
call fcn.00424150
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov esi, dword [ebp + 8]
mov dword [edx + 0x78], eax
add esp, 8
mov eax, edx
mov eax, dword [eax + 0x78]
test eax, eax
je 0x47374b
mov dword [eax + ecx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
test ecx, ecx
jle 0x473772
push 1
push eax
push ecx
push 0x8a
push edi
call fcn.00440c90
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebx]
push eax
mov eax, dword [esp + 0x1c]
push edx
push 0
push 0
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00471420
mov eax, dword [esp + 0x54]
add esp, 0x20
test eax, eax
je 0x4737b1
mov edx, dword [esp + 0x1c]
push 0
push edx
push eax
push 0x8d
push edi
call fcn.00440c90
add esp, 0x14
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x4737cd
mov edx, dword [esp + 0x28]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [edi + 0x20]
mov dword [eax], edx
mov eax, dword [edi + 0x20]
dec eax
mov dword [ecx + 0x60], eax
test byte [ebx + 8], 8
je 0x4737e9
push str.recursive_aggregate_queries_not_supported
call fcn.004266d0
add esp, 4
jmp 0x473806
lea ecx, [esp + 0x44]
push ecx
push ebx
push esi
mov dword [ebx + 0x30], 0
call fcn.004778c0
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [ebx + 0x30], edx
mov eax, dword [esp + 0x38]
push 0
push eax
push 0
push 0xd
push edi
call fcn.00440c90
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x78]
add esp, 0x14
test eax, eax
je 0x473836
mov edx, dword [esp + 0x1c]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [edi + 0x20]
mov dword [eax], edx
mov eax, dword [edi + 0x20]
dec eax
mov dword [ecx + 0x60], eax
mov ecx, dword [ebx + 0x2c]
mov edx, dword [esi]
push ecx
push edx
call fcn.00454b50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 8
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret