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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi]
mov edx, dword [ecx]
mov ecx, dword [edi + 0x30]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
push ebx
push 0x21
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call fcn.100419d0
add esp, 0x10
test eax, eax
jne 0x1005d57f
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x74]
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea eax, [ecx - 1]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ecx
test ecx, eax
jne 0x1005cf22
mov eax, dword [edx + 0x78]
lea ecx, [ecx*8 + 4]
push ebx
push ecx
mov ecx, dword [edx]
call fcn.100045e0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [edx + 0x78], eax
mov edx, dword [edx + 0x78]
cmp edx, ebx
je 0x1005cf30
mov dword [edx + ecx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ecx
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push edi
call fcn.1005cc20
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x18]
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [edx]
mov dword [esp + 0x2c], eax
add esp, 8
xor eax, eax
cmp ecx, ebx
jle 0x1005cfa4
add edx, 0x30
test byte [edx], 0x20
jne 0x1005cf93
inc eax
add edx, 0x50
cmp eax, ecx
jl 0x1005cf84
jmp 0x1005cfa4
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x10]
add edx, edx
mov ecx, dword [eax + edx*8 + 0x38]
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x48]
mov dword [esp + 8], ecx
inc ecx
mov dword [edx + 0x48], ecx
xor eax, eax
cmp byte [edi + 4], 0x73
jne 0x1005cfcf
cmp dword [esp + 0xc], ebx
mov dword [esp + 0x20], ecx
setne al
inc ecx
mov dword [edx + 0x48], ecx
lea eax, [eax + eax + 6]
jmp 0x1005cfda
cmp dword [esp + 0xc], ebx
setne al
lea eax, [eax + eax + 5]
inc dword [edx + 0x4c]
mov ecx, dword [edx + 0x4c]
mov byte [esp + 0x3c], al
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov byte [esp + 0x3d], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x1005d025
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push 0x3c
call fcn.10024290
mov edx, dword [ebp + 8]
add esp, 0x10
jmp 0x1005d054
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 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 + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax + 3], bl
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0x3c
cmp dword [esp + 0xc], ebx
je 0x1005d13a
push edi
push edx
call fcn.1005cd90
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
add ecx, 2
add esp, 8
mov dword [esp + 0x2c], ecx
cmp dword [edx + 0x58], eax
jg 0x1005d097
mov eax, dword [esp + 8]
push ebx
push ecx
push eax
push 0x39
call fcn.10024290
add esp, 0x10
jmp 0x1005d0c2
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 4]
lea edx, [eax + eax*4]
lea edx, [ecx + edx*4]
mov ecx, dword [esp + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov byte [edx + 3], bl
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ebx
mov dword [edx + 0x10], ebx
mov word [edx], 0x39
mov edx, dword [esi]
cmp byte [edx + 0x45], bl
je 0x1005d0e7
mov ecx, dword [esp + 0x1c]
mov eax, 0xfffffffa
call fcn.10024cd0
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x4c], eax
jmp 0x1005d18a
cmp eax, ebx
jge 0x1005d0ef
mov eax, dword [esi + 0x20]
dec eax
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
cmp byte [eax + edx*4 + 1], bl
lea ecx, [eax + edx*4]
je 0x1005d11e
mov edx, dword [esp + 0x1c]
push edx
push esi
mov eax, 0xfffffffa
call fcn.10024ec0
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 8]
add esp, 8
mov dword [esp + 0x4c], eax
jmp 0x1005d18a
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1005d12d
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfa
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x4c], eax
jmp 0x1005d18a
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x1005d15f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
push ebx
push edx
push eax
push 0x39
call fcn.10024290
mov edx, dword [ebp + 8]
add esp, 0x10
jmp 0x1005d18a
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x39
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1005d1df
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], ecx
jg 0x1005d1ac
push ebx
push ebx
push eax
push 0x39
call fcn.10024290
add esp, 0x10
jmp 0x1005d1d5
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x39
mov eax, ecx
mov edx, dword [ebp + 8]
or dword [edi + 8], 0x10
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [edi + 0x2c], ebx
push edx
mov dword [eax + 0x34], ebx
call fcn.10061e50
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [edx + 0x34], edi
cmp eax, ebx
jne 0x1005d558
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x1005d22d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
push ebx
push ecx
push edx
push 0x6c
call fcn.10024290
add esp, 0x10
mov dword [esp + 0x20], eax
jmp 0x1005d25c
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 8]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x6c
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x1005d27a
mov edx, dword [esp + 0x14]
push ebx
push ebx
push edx
push 0x68
call fcn.10024290
add esp, 0x10
jmp 0x1005d2a1
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x68
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x18]
cmp eax, ebx
je 0x1005d2ee
mov ecx, dword [eax]
mov eax, dword [esi + 0x20]
inc ecx
cmp dword [edx + 0x58], eax
jg 0x1005d2ce
mov eax, dword [esp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
push 0x2f
call fcn.10024290
add esp, 0x10
jmp 0x1005d338
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov word [eax], 0x2f
jmp 0x1005d32b
mov eax, dword [esi + 0x20]
cmp dword [edx + 0x58], eax
jg 0x1005d30d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push ebx
push eax
push ecx
push 0x66
call fcn.10024290
add esp, 0x10
jmp 0x1005d338
mov ecx, dword [esi + 4]
lea edx, [eax + 1]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov word [eax], 0x66
mov edx, dword [esp + 8]
mov dword [eax + 0x10], ebx
mov dword [eax + 4], edx
mov byte [eax + 3], bl
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1005d356
mov eax, dword [esp + 8]
push ebx
push ebx
push eax
push 0x5f
call fcn.10024290
add esp, 0x10
jmp 0x1005d37d
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 8]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x5f
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x74]
lea edx, [eax + 1]
mov dword [ecx + 0x74], edx
lea edx, [eax - 1]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
test eax, edx
jne 0x1005d3b9
lea eax, [eax*8 + 4]
push ebx
push eax
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx]
call fcn.100045e0
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x78], eax
mov eax, dword [esp + 0x34]
add esp, 8
mov ecx, dword [ecx + 0x78]
cmp ecx, ebx
je 0x1005d3c7
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x24], ebx
jle 0x1005d427
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1005d3fc
mov eax, dword [esp + 0x24]
push 1
push ecx
push eax
push 0x8a
call fcn.10024290
mov ecx, dword [esp + 0x2c]
add esp, 0x10
jmp 0x1005d427
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x24]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], ebx
mov word [eax], 0x8a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push ebx
push ebx
push edx
push eax
push edi
push ecx
call fcn.1005a930
mov ecx, dword [esp + 0x54]
add esp, 0x24
cmp ecx, ebx
je 0x1005d498
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1005d471
mov eax, dword [esp + 0x18]
push ebx
push eax
push ecx
push 0x8d
call fcn.10024290
add esp, 0x10
jmp 0x1005d498
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x8d
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
cmp eax, ebx
je 0x1005d4b4
mov edx, dword [esp + 0x1c]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x60], eax
test byte [edi + 8], 8
je 0x1005d4d4
mov ecx, dword [ebp + 8]
push str.recursive_aggregate_queries_not_supported
push ecx
call fcn.10006e10
add esp, 8
jmp 0x1005d4f0
mov eax, dword [ebp + 8]
lea edx, [esp + 0x3c]
push edx
push edi
push eax
mov dword [edi + 0x30], ebx
call fcn.10061e50
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [edi + 0x30], ecx
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1005d50e
mov eax, dword [esp + 0x20]
push ebx
push eax
push ebx
push 0xd
call fcn.10024290
add esp, 0x10
jmp 0x1005d535
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0xd
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
cmp eax, ebx
je 0x1005d551
mov edx, dword [esp + 0x18]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x60], eax
mov ecx, dword [edi + 0x2c]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ecx
push eax
call fcn.10039850
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add esp, 8
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret