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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x519008]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [esp + 0x1c], esi
mov ebx, ecx
mov dword [esp + 0x20], ebx
xor eax, eax
mov edi, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
mov eax, dword [edi]
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x50], eax
cmp dword [ecx + 0x30], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ecx
jne 0x483e32
cmp dword [ecx + 0x3c], 0
jne 0x483e2b
mov edi, dword [ebx + 8]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x483655
cmp dword [ebx + 0x74], edi
jne 0x483648
test byte [edx + 0x4c], 8
jne 0x483648
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.004c8600
mov edi, eax
mov dword [esp + 0x2c], eax
mov dl, byte [esp + 0x3c]
cmp dl, 0xc
jne 0x48367b
mov eax, dword [esi]
mov edx, 0x71
mov ecx, edi
push dword [eax]
push dword [esp + 0x44]
call fcn.004c8180
mov dl, 0xe
add esp, 8
mov byte [esp + 0x3c], dl
mov eax, dword [esi + 8]
test eax, 0x400
je 0x483704
mov eax, dword [esi + 0x3c]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x34]
mov edi, 1
sete cl
test eax, eax
je 0x4836b5
nop
mov esi, eax
add edi, ecx
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x4836a0
mov eax, 0x511ef4
cmp edi, 1
jne 0x4836ba
mov eax, 0x503d60
push eax
push edi
push str.SCAN__d_CONSTANT_ROW_s
push 0
push ebx
call fcn.004c7d40
add esp, 0x14
lea esp, [esp]
push 1
push 1
lea eax, [esp + 0x44]
mov edx, esi
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00485ee0
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x4836fd
mov word [esi + 6], di
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x4836d0
xor ebx, ebx
jmp 0x483dea
test eax, 0x2000
je 0x483721
lea eax, [esp + 0x3c]
mov edx, esi
push eax
mov ecx, ebx
call fcn.00483f10
add esp, 4
jmp 0x483c9f
cmp dword [esi + 0x30], 0
je 0x483749
push dword [esp + 0x28]
mov edx, esi
mov ecx, ebx
call fcn.00481f80
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x34], 0
jne 0x48377b
push str.COMPOUND_QUERY
push 1
push ebx
call fcn.004c7d40
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push ebx
call fcn.004c7d40
mov dl, byte [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x24]
movzx eax, byte [esi + 4]
sub eax, 0x7f
je 0x483a99
sub eax, 1
je 0x48397e
sub eax, 1
je 0x483a99
mov ecx, dword [ebx + 0x28]
mov edx, 0x71
push 0
mov dword [esp + 0x14], ecx
push ecx
lea eax, [ecx + 1]
mov ecx, edi
mov dword [esp + 0x1c], eax
inc eax
mov dword [ebx + 0x28], eax
call fcn.004c8180
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.00487970
mov edx, dword [esp + 0x2c]
mov ecx, ebx
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x60], 1
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.0047cbd0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x483de6
push eax
push dword [esp + 0x18]
lea edx, [eax + 0x71]
mov ecx, edi
call fcn.004c8180
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x3c]
movzx ecx, byte [esi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x60], eax
call fcn.00485d10
push eax
push str._s_USING_TEMP_B_TREE
push 1
push ebx
call fcn.004c7d40
lea eax, [esp + 0x6c]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0047cbd0
mov dword [esp + 0x34], eax
add esp, 0x1c
mov eax, dword [esi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x34], eax
movzx eax, word [eax + 6]
cmp word [esi + 6], ax
jle 0x483886
mov word [esi + 6], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x483896
mov ecx, dword [esp + 0x30]
call fcn.004afa70
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x3c], eax
mov esi, dword [ebx + 0x38]
mov eax, dword [esp + 0x20]
dec esi
push esi
mov ecx, eax
mov dword [esp + 0x3c], esi
lea ebx, [esi - 1]
mov dword [eax + 0x38], ebx
call fcn.004847e0
add esp, 4
mov edx, 0x24
mov ecx, edi
push esi
push dword [esp + 0x14]
call fcn.004c8180
mov ecx, dword [esp + 0x28]
call fcn.004a7da0
mov esi, eax
mov edx, 0x7f
push esi
push dword [esp + 0x1c]
mov ecx, edi
call fcn.004c8180
mov ecx, dword [esp + 0x3c]
mov edx, 0x1c
push 0
push esi
push ebx
push dword [esp + 0x30]
mov edi, eax
call fcn.004c7b60
mov ecx, dword [esp + 0x40]
mov edx, esi
call fcn.004a7d80
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x5c]
mov edx, dword [esp + 0x3c]
push esi
push ebx
push eax
push 0
push 0
push dword [esp + 0x44]
call fcn.00485ee0
mov edx, ebx
mov ebx, dword [esp + 0x64]
mov ecx, ebx
call fcn.004c7a60
push edi
mov edi, dword [esp + 0x4c]
mov edx, 5
push edi
mov ecx, ebx
call fcn.004c8180
add esp, 0x40
mov edx, esi
mov ecx, ebx
call fcn.004c7a60
lea eax, [edi + 1]
mov edx, 0x75
push 0
push eax
mov ecx, ebx
call fcn.004c8180
push 0
push edi
mov edx, 0x75
mov ecx, ebx
call fcn.004c8180
add esp, 0x10
jmp 0x483c57
xor eax, eax
mov edx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.0047cbd0
mov ecx, eax
mov dword [esi + 0x3c], 0
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x483de6
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x483a03
push ecx
mov edx, 0x14
mov ecx, edi
call fcn.004c81f0
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x483a03
push ecx
inc ecx
mov edx, 0x98
push ecx
push dword [esi + 0xc]
mov ecx, edi
call fcn.004c82b0
add esp, 0xc
push str.UNION_ALL
push 1
push ebx
call fcn.004c7d40
add esp, 0xc
lea eax, [esp + 0x3c]
mov edx, esi
mov ecx, ebx
push eax
call fcn.0047cbd0
mov cx, word [esi + 6]
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x34], eax
mov dx, word [eax + 6]
call fcn.004e8730
mov word [esi + 6], ax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x483a7f
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x38]
call fcn.004adeb0
test eax, eax
je 0x483a7f
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x483a7f
cdq
push edx
push eax
call fcn.004e8680
add esp, 8
cmp word [esi + 6], ax
jle 0x483a7f
mov word [esi + 6], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x483c5f
mov edx, eax
mov ecx, edi
call fcn.004c7670
jmp 0x483c5f
cmp dl, 1
jne 0x483aa8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jmp 0x483ad9
mov ecx, dword [ebx + 0x28]
mov edx, 0x71
push 0
mov dword [esp + 0x14], ecx
push ecx
lea eax, [ecx + 1]
mov ecx, edi
mov dword [ebx + 0x28], eax
call fcn.004c8180
add esp, 8
mov dword [esi + 0x18], eax
mov ecx, esi
call fcn.00487970
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov dword [esp + 0x70], eax
mov edx, edi
lea eax, [esp + 0x6c]
mov byte [esp + 0x6c], 1
push eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call fcn.0047cbd0
mov ecx, eax
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x483de6
cmp byte [esi + 4], 0x81
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x38], eax
sete al
mov dword [esi + 0x3c], ecx
inc al
movzx ecx, byte [esi + 4]
mov byte [esp + 0x6c], al
call fcn.00485d10
push eax
push str._s_USING_TEMP_B_TREE
push 1
push ebx
call fcn.004c7d40
lea eax, [esp + 0x7c]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0047cbd0
mov edx, dword [esi + 0x30]
add esp, 0x14
mov dword [esp + 0x18], eax
test edx, edx
je 0x483b76
mov ecx, dword [esp + 0x30]
call fcn.004ae4e0
cmp byte [esi + 4], 0x7f
mov eax, dword [esi + 0x34]
mov dword [esp + 0x34], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], 0
jne 0x483b9e
mov dx, word [edi + 6]
mov cx, word [esi + 6]
call fcn.004e8730
mov word [esi + 6], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x483bae
mov ecx, dword [esp + 0x30]
call fcn.004afa70
cmp byte [esp + 0x3c], 1
mov eax, dword [esp + 0x38]
mov dword [esi + 0x3c], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
je 0x483c5f
mov ebx, dword [ebx + 0x38]
mov edx, esi
mov eax, dword [esp + 0x20]
dec ebx
push ebx
mov ecx, eax
lea edi, [ebx - 1]
mov dword [eax + 0x38], edi
call fcn.004847e0
mov esi, dword [esp + 0x30]
add esp, 4
mov edx, 0x24
mov ecx, esi
push ebx
push dword [esp + 0x14]
call fcn.004c8180
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov esi, dword [esi + 0x6c]
push ebx
push edi
push eax
push 0
push 0
push dword [esp + 0x2c]
call fcn.00485ee0
mov edx, edi
mov edi, dword [esp + 0x4c]
mov ecx, edi
call fcn.004c7a60
push esi
mov esi, dword [esp + 0x34]
mov edx, 5
push esi
mov ecx, edi
call fcn.004c8180
mov edx, ebx
mov ecx, edi
call fcn.004c7a60
push 0
push esi
mov edx, 0x75
mov ecx, edi
call fcn.004c8180
add esp, 0x30
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x38], 0
jne 0x483c9f
mov ecx, dword [ebx + 0xd4]
test ecx, ecx
jne 0x483c73
xor eax, eax
jmp 0x483c99
mov edx, dword [ebx + 8]
test ecx, ecx
jns 0x483c7e
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x483c8d
mov eax, 0x51e9d8
jmp 0x483c96
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [ebx + 0xd4], eax
test byte [esi + 8], 0x20
je 0x483de6
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
push 1
mov edx, dword [eax]
mov dword [esp + 0x20], edx
call fcn.00485e20
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x483cd1
lea ebx, [eax + 7]
jmp 0x483dea
mov edx, dword [esp + 0x1c]
lea eax, [edi + 0x14]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
test edx, edx
jle 0x483d30
mov edi, dword [esp + 0x10]
lea ebx, [ebx]
push eax
mov edx, esi
mov ecx, ebx
call fcn.004847a0
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x483d0c
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
add edi, 4
mov edx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x483cf0
mov edi, dword [esp + 0x20]
jmp 0x483d30
mov ebx, dword [esp + 0x2c]
lea eax, [esi + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [eax]
test eax, eax
js 0x483dd4
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x483d62
mov eax, 0x51e9d8
jmp 0x483d67
mov eax, dword [ebx + 0x68]
add eax, ecx
mov dword [eax + 8], edx
inc dword [edi]
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
je 0x483d8a
push edi
mov edx, 0xfffffff7
mov ecx, eax
call fcn.004c7440
mov edx, dword [esp + 0x20]
add esp, 4
jmp 0x483db1
mov eax, dword [ebx + 0x68]
add eax, ecx
cmp byte [eax + 1], 0
je 0x483daa
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, ebx
call fcn.004c71e0
mov edx, dword [esp + 0x24]
add esp, 8
jmp 0x483db1
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 2
jl 0x483d43
mov esi, dword [esi + 0x34]
test esi, esi
jne 0x483d30
mov ecx, edi
call fcn.00485dd0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x483e14
mov ecx, dword [esp + 0x30]
mov edx, eax
push 1
call fcn.00487b70
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
mov ecx, str.LIMIT
jmp 0x483e37
mov ecx, str.ORDER_BY
movzx eax, byte [esi + 4]
sub eax, 0x80
je 0x483e61
sub eax, 1
je 0x483e5a
sub eax, 1
je 0x483e53
mov eax, str.UNION
jmp 0x483e66
mov eax, str.INTERSECT
jmp 0x483e66
mov eax, str.EXCEPT
jmp 0x483e66
mov eax, str.UNION_ALL
push eax
push ecx
push str._s_clause_should_come_after__s_not_before
push ebx
call fcn.004e9ae0
add esp, 0x10
mov ebx, 1
jmp 0x483dee