Function at 0x48b680
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x577018]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
movups xmm0, xmmword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x34]
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x28], esi
movq xmm0, qword [edi + 0x10]
movq qword [esp + 0x50], xmm0
mov edx, dword [eax + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], eax
test edx, edx
jne 0x48bfd0
cmp dword [eax + 0x3c], edx
jne 0x48bfd0
mov edi, dword [ecx + 8]
mov dword [esp + 0x24], edi
test edi, edi
jne 0x48b714
cmp dword [ecx + 0x74], edi
jne 0x48b709
mov eax, dword [esp + 0x2c]
test byte [eax + 0x4c], 8
jne 0x48b709
mov byte [ecx + 0x17], 1
call fcn.00446150
mov edi, eax
mov dword [esp + 0x24], eax
mov dl, byte [esp + 0x40]
cmp dl, 0xc
jne 0x48b73a
mov eax, dword [esi]
mov edx, 0x71
mov ecx, edi
push dword [eax]
push dword [esp + 0x48]
call fcn.00446560
mov dl, 0xe
add esp, 8
mov byte [esp + 0x40], dl
mov eax, dword [esi + 8]
test eax, 0x400
je 0x48b7fb
mov eax, dword [esi + 0x3c]
xor edx, edx
test eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x34]
mov ecx, 1
sete dl
mov dword [esp + 0x18], ecx
test eax, eax
je 0x48b775
mov esi, eax
add ecx, edx
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x48b766
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0xc]
cmp ecx, 1
mov edx, 0x55d73c
mov eax, 0x5581b4
cmovne eax, edx
push eax
push ecx
push str.SCAN__d_CONSTANT_ROW_s
push 0
push edi
call fcn.004468a0
add esp, 0x14
nop dword [eax + eax]
push 1
push 1
lea eax, [esp + 0x48]
mov edx, esi
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, edi
call fcn.00488c20
add esp, 0x18
cmp dword [esp + 0x30], 0
jne 0x48b7d1
mov eax, dword [esp + 0x18]
mov word [esi + 6], ax
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x48b7a0
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov eax, dword [esp + 0x48]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0xc], eax
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
test eax, 0x2000
je 0x48b81a
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.0048b0c0
add esp, 4
jmp 0x48bdc0
cmp dword [esi + 0x30], 0
je 0x48b847
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
push edx
mov edx, esi
call fcn.0048c420
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x34], 0
jne 0x48b87f
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x14]
call fcn.004468a0
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x14]
call fcn.004468a0
mov dl, byte [esp + 0x4c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
movzx eax, byte [esi + 4]
sub eax, 0x7b
je 0x48bbc3
sub eax, 1
je 0x48baa1
sub eax, 1
je 0x48bbc3
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x18], edx
push edx
lea eax, [edx + 1]
mov edx, 0x71
mov dword [esp + 0x28], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.00446560
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.00487eb0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x78], 1
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call fcn.004906e0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x48bf88
push eax
push dword [esp + 0x24]
lea edx, [eax + 0x71]
mov ecx, edi
call fcn.00446560
movzx ecx, byte [esi + 4]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x78], eax
call fcn.00489a20
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x20]
call fcn.004468a0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x84]
push eax
mov edx, esi
call fcn.004906e0
mov dword [esp + 0x38], eax
add esp, 0x1c
mov eax, dword [esi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x34], eax
movzx eax, word [eax + 6]
cmp word [esi + 6], ax
jle 0x48b9a1
mov word [esi + 6], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x48b9b1
mov ecx, dword [esp + 0x2c]
call fcn.0045dbe0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x3c], eax
mov esi, dword [ecx + 0x38]
dec esi
push esi
mov dword [esp + 0x14], esi
lea eax, [esi - 1]
mov dword [ecx + 0x38], eax
call fcn.0048ae20
add esp, 4
mov edx, 0x24
mov ecx, edi
push esi
push dword [esp + 0x18]
call fcn.00446560
mov ecx, dword [esp + 0x14]
call fcn.00464bb0
mov esi, eax
mov edx, 0x80
push esi
push dword [esp + 0x20]
mov ecx, edi
call fcn.00446560
mov ecx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x20]
mov edx, 0x1c
push 0
push esi
dec eax
push eax
push dword [esp + 0x3c]
call fcn.004469c0
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.00464bd0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
push eax
lea esi, [eax - 1]
push esi
lea eax, [esp + 0x68]
push eax
push 0
push 0
push dword [esp + 0x48]
call fcn.00488c20
mov edx, esi
mov esi, dword [esp + 0x5c]
mov ecx, esi
call fcn.00446b80
push edi
mov edi, dword [esp + 0x50]
mov edx, 5
push edi
mov ecx, esi
call fcn.00446560
mov edx, dword [esp + 0x50]
add esp, 0x40
mov ecx, esi
call fcn.00446b80
lea eax, [edi + 1]
mov edx, 0x75
push 0
push eax
mov ecx, esi
call fcn.00446560
push 0
push edi
mov edx, 0x75
mov ecx, esi
call fcn.00446560
add esp, 0x10
jmp 0x48bdab
xor eax, eax
mov edx, ecx
mov dword [esp + 0x18], 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 + 0x40]
mov ecx, dword [esp + 0xc]
push eax
call fcn.004906e0
mov ecx, eax
mov dword [esi + 0x3c], 0
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x48bf88
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x48bb28
push ecx
mov edx, 0x14
mov ecx, edi
call fcn.00446500
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x48bb28
push ecx
inc ecx
mov edx, 0x99
push ecx
push dword [esi + 0xc]
mov ecx, edi
call fcn.00446430
add esp, 0xc
push str.UNION_ALL
push 1
push dword [esp + 0x14]
call fcn.004468a0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
add esp, 0xc
mov edx, esi
push eax
call fcn.004906e0
mov cx, word [esi + 6]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x34], eax
mov dx, word [eax + 6]
call fcn.00428e90
mov edx, dword [esp + 0x10]
mov word [esi + 6], ax
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x48bba9
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x3c]
call fcn.0045f340
test eax, eax
je 0x48bba9
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x48bba9
cdq
push edx
push eax
call fcn.00428f00
add esp, 8
cmp word [esi + 6], ax
jle 0x48bba9
mov word [esi + 6], ax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48bdaf
mov edx, eax
mov ecx, edi
call fcn.00446ec0
jmp 0x48bdaf
cmp dl, 1
jne 0x48bbd2
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
jmp 0x48bc07
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x18], edx
push edx
lea eax, [edx + 1]
mov edx, 0x71
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.00446560
add esp, 8
mov dword [esi + 0x18], eax
mov ecx, esi
call fcn.00487eb0
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ecx, edi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x88], 1
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
call fcn.004906e0
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x48bf88
cmp byte [esi + 4], 0x7d
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x3c], eax
sete al
mov dword [esi + 0x3c], ecx
inc al
movzx ecx, byte [esi + 4]
mov byte [esp + 0x84], al
call fcn.00489a20
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.004468a0
lea eax, [esp + 0x94]
mov edx, esi
push eax
mov ecx, edi
call fcn.004906e0
mov edx, dword [esi + 0x30]
add esp, 0x14
mov dword [esp + 0x1c], eax
test edx, edx
je 0x48bcbb
mov ecx, dword [esp + 0x2c]
call fcn.0045edb0
cmp byte [esi + 4], 0x7b
mov eax, dword [esi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 0
jne 0x48bce7
mov dx, word [eax + 6]
mov cx, word [esi + 6]
call fcn.00428e90
mov word [esi + 6], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x48bcf7
mov ecx, dword [esp + 0x2c]
call fcn.0045dbe0
cmp byte [esp + 0x40], 1
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
je 0x48bdb3
mov esi, dword [edi + 0x38]
mov eax, dword [esp + 0xc]
dec esi
mov edx, dword [esp + 0x28]
mov ecx, eax
push esi
mov dword [esp + 0x1c], esi
lea edi, [esi - 1]
mov dword [eax + 0x38], edi
call fcn.0048ae20
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00446560
push dword [esp + 0x20]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0x6c]
push edi
push eax
push 0
push 0
push dword [esp + 0x30]
call fcn.00488c20
mov edx, edi
mov edi, dword [esp + 0x44]
mov ecx, edi
call fcn.00446b80
push esi
mov esi, dword [esp + 0x38]
mov edx, 5
push esi
mov ecx, edi
call fcn.00446560
mov edx, dword [esp + 0x40]
mov ecx, edi
call fcn.00446b80
push 0
push esi
mov edx, 0x75
mov ecx, edi
call fcn.00446560
add esp, 0x30
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xc]
cmp dword [esi + 0x38], 0
jne 0x48bdc0
mov ecx, edi
call fcn.00446900
test byte [esi + 8], 0x20
je 0x48bf84
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.004898f0
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
test edi, edi
jne 0x48bdfa
mov ecx, 7
mov dword [esp + 0x1c], ecx
jmp 0x48bf88
xor ecx, ecx
lea edx, [edi + 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x18], ecx
jle 0x48be91
mov edi, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
nop dword [eax]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x48be42
push ecx
mov edx, eax
mov ecx, edi
call fcn.0048af70
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x48be67
jmp 0x48be44
xor eax, eax
mov edi, dword [esi]
cmp ecx, dword [edi]
mov edi, dword [esp + 0xc]
jge 0x48be67
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax + 4]
call fcn.0045c7c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx], eax
test eax, eax
jne 0x48be76
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
mov dword [edx], eax
add dword [esp + 0x20], 0x18
inc ecx
add edx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
cmp ecx, dword [esp + 0x18]
jl 0x48be20
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
nop word [eax + eax]
lea eax, [esi + 0x18]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
lea esi, [edx + 0x68]
mov eax, dword [eax]
test eax, eax
js 0x48bf62
lea ecx, [eax + eax*4]
mov eax, dword [edx]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x48bed1
mov eax, 0x57ad14
jmp 0x48bed5
mov eax, dword [esi]
add eax, ecx
mov edi, dword [esp + 0x18]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
inc eax
mov dword [edi], eax
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x48bf17
cmp dword [eax + 0x1e0], 0
jne 0x48bf12
mov eax, dword [esp + 0x10]
mov dword [edi], eax
test eax, eax
jne 0x48bf12
mov ecx, dword [edi + 0xc]
mov edx, edi
call fcn.00423590
mov edx, dword [esp + 0x24]
lea esi, [edx + 0x68]
jmp 0x48bf3f
mov eax, dword [esi]
add eax, ecx
cmp byte [eax + 1], 0
je 0x48bf38
mov ecx, dword [esp + 0x24]
mov edx, eax
push 0xfffffffffffffff7
push edi
call fcn.004472e0
mov edx, dword [esp + 0x2c]
add esp, 8
jmp 0x48bf3f
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x14], eax
cmp ecx, 2
jl 0x48beb2
mov esi, dword [esp + 0x28]
mov esi, dword [esi + 0x34]
mov dword [esp + 0x28], esi
test esi, esi
jne 0x48bea0
add dword [edi], 0xffffffff
jne 0x48bf84
mov ecx, dword [edi + 0xc]
mov edx, edi
call fcn.00423590
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x48c02f
mov ecx, dword [esp + 0x2c]
mov edx, eax
push 1
call fcn.00487ba0
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 4]
sub eax, 0x7c
je 0x48bff8
sub eax, 1
je 0x48bff1
sub eax, 1
je 0x48bfea
mov eax, str.UNION
jmp 0x48bffd
mov eax, str.INTERSECT
jmp 0x48bffd
mov eax, str.EXCEPT
jmp 0x48bffd
mov eax, str.UNION_ALL
push eax
test edx, edx
mov eax, str.ORDER_BY
mov esi, str.LIMIT
cmove eax, esi
push eax
push str._s_clause_should_come_after__s_not_before
push ecx
call fcn.00427d40
mov eax, dword [esp + 0x58]
add esp, 0x10
mov dword [edi + 8], eax
mov ecx, 1
mov eax, dword [esp + 0x4c]
mov dword [edi + 0xc], eax
mov eax, ecx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret