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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ecx + 8]
push edi
mov edi, edx
mov dword [esp + 0x18], ecx
push 0
push 0
push 0
mov eax, dword [edi + 0x1c]
mov edx, 0x21
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 0
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x38], eax
call fcn.00496780
add esp, 0xc
test eax, eax
jne 0x4b20e3
mov ebx, dword [esi + 0x18]
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x20], ecx
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x4b19df
mov edx, dword [ebx + 0x78]
lea eax, [ecx*8 + 4]
mov ecx, dword [ebx]
push 0
push eax
call fcn.0045a1b0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4b19ed
mov dword [eax + ecx*4], 0xffffffff
or eax, 0xffffffff
mov edx, edi
sub eax, ecx
mov ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0x18], eax
call fcn.004b16c0
mov eax, dword [edi + 0x38]
add esp, 4
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x34], 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 [esp + 0xc], eax
xor eax, eax
test edx, edx
jle 0x4b1a6f
lea ecx, [ebx + 0x30]
test byte [ecx], 0x20
jne 0x4b1a62
inc eax
add ecx, 0x50
cmp eax, edx
jl 0x4b1a53
jmp 0x4b1a6f
lea eax, [eax + eax*4]
add eax, eax
mov eax, dword [ebx + eax*8 + 0x38]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov ebx, dword [edx + 0x48]
lea eax, [ebx + 1]
mov dword [edx + 0x48], eax
cmp byte [edi + 4], 0x73
jne 0x4b1a9c
cmp dword [esp + 0xc], ecx
mov dword [esp + 0x28], eax
setne cl
inc eax
mov dword [edx + 0x48], eax
lea ecx, [ecx*2 + 6]
jmp 0x4b1aaa
cmp dword [esp + 0xc], ecx
setne cl
lea ecx, [ecx*2 + 5]
inc dword [edx + 0x4c]
mov edx, dword [edx + 0x4c]
mov byte [esp + 0x44], cl
mov dword [esp + 0x48], ebx
mov byte [esp + 0x45], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x20], edx
cmp dword [eax + 0x58], ecx
jg 0x4b1afa
push dword [esp + 0x24]
mov ecx, esi
push edx
push dword [esp + 0x18]
mov edx, 0x3c
call fcn.004791e0
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x4b1b31
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x3c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0xc], 0
je 0x4b1c26
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.004b1830
mov ecx, dword [esi + 0x18]
add esp, 4
mov edx, dword [esi + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
add eax, 2
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x58], edx
jg 0x4b1b7e
push 0
push eax
push ebx
mov edx, 0x39
mov ecx, esi
call fcn.004791e0
add esp, 0xc
mov edx, eax
jmp 0x4b1bb5
mov edi, dword [esp + 0x30]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x39
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 ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x4b1bdc
mov edx, dword [esp + 0x24]
push edx
mov edx, 0xfffffffa
call fcn.00479ca0
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x54], eax
jmp 0x4b1c75
test edx, edx
jns 0x4b1be4
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 edx, dword [esp + 0x24]
je 0x4b1c11
push 0xfffffffffffffffa
push edx
mov edx, eax
mov ecx, esi
call fcn.00479ec0
mov eax, dword [esp + 0x14]
add esp, 8
mov dword [esp + 0x54], eax
jmp 0x4b1c75
test edx, edx
je 0x4b1c1c
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
jmp 0x4b1c75
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4b1c46
push 0
push edx
push ebx
mov edx, 0x39
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4b1c75
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x39
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 [esp + 0x28]
test ecx, ecx
je 0x4b1ce2
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4b1ca0
push 0
push 0
push ecx
mov edx, 0x39
mov ecx, esi
call fcn.004791e0
add esp, 0xc
mov edx, eax
jmp 0x4b1cdb
mov edi, dword [esp + 0x28]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x39
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], 0x10
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov dword [edi + 0x2c], 0
mov dword [eax + 0x34], 0
call fcn.004b6eb0
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ecx + 0x34], edi
test eax, eax
jne 0x4b20c0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x28], edx
cmp dword [eax + 0x58], edx
jg 0x4b1d42
mov edx, dword [esp + 0x14]
mov ecx, esi
push 0
push edx
push ebx
mov edx, 0x6c
call fcn.004791e0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4b1d75
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 0x6c
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 0x4b1d99
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x68
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4b1dd0
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x68
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 [esp + 0xc]
mov ecx, dword [esi + 0x20]
test eax, eax
je 0x4b1e1d
mov edx, dword [eax]
mov eax, dword [esi + 0x18]
inc edx
cmp dword [eax + 0x58], ecx
jg 0x4b1dfd
push dword [esp + 0x20]
mov ecx, esi
push edx
push ebx
mov edx, 0x2f
call fcn.004791e0
add esp, 0xc
jmp 0x4b1e70
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x2f
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x4b1e5f
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x4b1e3d
push 0
push dword [esp + 0x24]
mov edx, 0x66
mov ecx, esi
push ebx
call fcn.004791e0
add esp, 0xc
jmp 0x4b1e70
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x66
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 0x4b1e91
push 0
push 0
push ebx
mov edx, 0x5f
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4b1ec4
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x5f
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 [esp + 0x30], ecx
mov ebx, dword [ecx + 0x74]
lea eax, [ebx + 1]
mov dword [ecx + 0x74], eax
lea eax, [ebx - 1]
test ebx, eax
jne 0x4b1ef9
mov edx, dword [ecx + 0x78]
lea eax, [ebx*8 + 4]
mov ecx, dword [ecx]
push 0
push eax
call fcn.0045a1b0
mov ecx, dword [esp + 0x38]
add esp, 8
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x4b1f07
mov dword [eax + ebx*4], 0xffffffff
or edx, 0xffffffff
sub edx, ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x24], edx
test ebx, ebx
jle 0x4b1f6b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4b1f3c
push 1
push edx
push ebx
mov edx, 0x8a
mov ecx, esi
call fcn.004791e0
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x4b1f6b
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x8a
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 [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
push edx
push dword [ebp + 8]
mov edx, edi
push 0
push 0
push dword [esp + 0x24]
push dword [edi]
call fcn.004af220
mov edx, dword [esp + 0x54]
add esp, 0x1c
test edx, edx
je 0x4b1feb
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4b1fb8
push 0
push dword [esp + 0x18]
mov ecx, esi
push edx
mov edx, 0x8d
call fcn.004791e0
add esp, 0xc
jmp 0x4b1feb
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 0x8d
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 0x4b2007
mov eax, dword [esp + 0x24]
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 0x4b2024
push str.recursive_aggregate_queries_not_supported
push ebx
call fcn.0045ca50
add esp, 8
jmp 0x4b2043
lea eax, [esp + 0x44]
mov dword [edi + 0x30], 0
push eax
mov edx, edi
mov ecx, ebx
call fcn.004b6eb0
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x28]
cmp dword [eax + 0x58], ecx
jg 0x4b2068
push 0
push edx
push 0
mov edx, 0xd
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4b209b
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 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 0x4b20b7
mov eax, dword [esp + 0x14]
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 0x4b20c4
mov ebx, dword [esp + 0x18]
mov edx, dword [edi + 0x2c]
mov ecx, dword [ebx]
call fcn.0048e9f0
mov eax, dword [esp + 0xc]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x3c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret