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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
push esi
push edi
mov edi, edx
mov dword [esp + 8], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
movups xmm0, xmmword [edx]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x34]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x18], edi
movq xmm0, qword [edx + 0x10]
movq qword [esp + 0x40], xmm0
mov edx, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test edx, edx
jne 0x4d9132
cmp dword [eax + 0x3c], edx
jne 0x4d9132
mov esi, dword [ecx + 8]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4d88ff
cmp dword [ecx + 0x74], esi
jne 0x4d88f4
mov eax, dword [esp + 0x1c]
test byte [eax + 0x4c], 8
jne 0x4d88f4
mov byte [ecx + 0x17], 1
call fcn.0049ca60
mov esi, eax
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x30]
cmp dl, 0xc
jne 0x4d8925
mov eax, dword [edi]
mov edx, 0x71
mov ecx, esi
push dword [eax]
push dword [esp + 0x38]
call fcn.0049ce10
mov dl, 0xe
add esp, 8
mov byte [esp + 0x30], dl
mov eax, dword [edi + 8]
test eax, 0x400
je 0x4d89be
mov eax, dword [edi + 0x3c]
xor edx, edx
test eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x34]
mov ecx, 1
sete dl
mov dword [esp + 0x28], ecx
test eax, eax
je 0x4d8960
mov edi, eax
add ecx, edx
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x4d8951
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 8]
cmp ecx, 1
mov edx, 0x615244
mov eax, 0x610f54
cmovne eax, edx
push eax
push ecx
push str.SCAN__d_CONSTANT_ROW_s
push 0
push esi
call fcn.0049d120
add esp, 0x14
push 1
push 1
lea eax, [esp + 0x38]
mov edx, edi
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004d6130
add esp, 0x18
cmp dword [esp + 0x20], 0
jne 0x4d89b7
mov eax, dword [esp + 0x28]
mov word [edi + 6], ax
mov edi, dword [edi + 0x38]
test edi, edi
jne 0x4d8986
xor esi, esi
jmp 0x4d9101
test eax, 0x2000
je 0x4d89df
mov esi, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
mov edx, edi
mov ecx, esi
call fcn.004d8300
add esp, 4
jmp 0x4d8fa5
cmp dword [edi + 0x30], 0
je 0x4d89fc
push dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.004d9550
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x34], 0
jne 0x4d8a34
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x10]
call fcn.0049d120
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x10]
call fcn.0049d120
mov dl, byte [esp + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
movzx eax, byte [edi + 4]
sub eax, 0x7f
je 0x4d8d81
sub eax, 1
je 0x4d8c57
sub eax, 1
je 0x4d8d81
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x24], edx
push edx
lea eax, [edx + 1]
mov edx, 0x71
mov dword [esp + 0x30], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, esi
call fcn.0049ce10
mov dword [edi + 0x18], eax
add esp, 8
mov eax, dword [edi + 0x38]
mov ecx, edi
test eax, eax
je 0x4d8a90
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x4d8a87
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x54], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call fcn.004dc910
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4d90fd
push eax
push dword [esp + 0x2c]
lea edx, [eax + 0x71]
mov ecx, esi
call fcn.0049ce10
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x3c]
movzx ecx, byte [edi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
mov dword [esp + 0x5c], eax
call fcn.004d6ed0
mov esi, dword [esp + 0x10]
push eax
push str._s_USING_TEMP_B_TREE
push 1
push esi
call fcn.0049d120
lea eax, [esp + 0x68]
mov edx, edi
push eax
mov ecx, esi
call fcn.004dc910
mov dword [esp + 0x28], eax
add esp, 0x1c
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
movzx eax, word [eax + 6]
cmp word [edi + 6], ax
jle 0x4d8b57
mov word [edi + 6], ax
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x4d8b67
mov ecx, dword [esp + 0x1c]
call fcn.004b20e0
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov dword [edi + 0x3c], eax
mov edx, edi
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.004d8030
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x24]
call fcn.0049ce10
mov ecx, dword [esp + 0x10]
call fcn.004b8930
mov ecx, dword [esp + 0x1c]
mov esi, eax
push esi
push dword [esp + 0x2c]
mov edx, 0x7f
call fcn.0049ce10
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x20]
mov edx, 0x1c
push 0
push esi
dec eax
push eax
push dword [esp + 0x44]
call fcn.0049d1f0
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.004b8950
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push eax
lea esi, [eax - 1]
push esi
lea eax, [esp + 0x58]
push eax
push 0
push 0
push dword [esp + 0x54]
call fcn.004d6130
mov edx, esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.0049d340
push edi
mov edi, dword [esp + 0x5c]
mov edx, 5
push edi
mov ecx, esi
call fcn.0049ce10
mov edx, dword [esp + 0x50]
add esp, 0x40
mov ecx, esi
call fcn.0049d340
lea eax, [edi + 1]
mov edx, 0x75
push 0
push eax
mov ecx, esi
call fcn.0049ce10
push 0
push edi
mov edx, 0x75
mov ecx, esi
call fcn.0049ce10
add esp, 0x10
jmp 0x4d8f5d
xor eax, eax
mov edx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x3c]
mov dword [ecx + 0x3c], eax
lea eax, [esp + 0x30]
mov ecx, dword [esp + 8]
push eax
call fcn.004dc910
mov ecx, eax
mov dword [edi + 0x3c], 0
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4d90fd
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [edi + 0x10], eax
test ecx, ecx
je 0x4d8cde
push ecx
mov edx, 0x14
mov ecx, esi
call fcn.0049cdb0
mov ecx, dword [edi + 0x10]
add esp, 4
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x4d8cde
push ecx
inc ecx
mov edx, 0x98
push ecx
push dword [edi + 0xc]
mov ecx, esi
call fcn.0049cce0
add esp, 0xc
push str.UNION_ALL
push 1
push dword [esp + 0x10]
call fcn.0049d120
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
add esp, 0xc
mov edx, edi
push eax
call fcn.004dc910
mov cx, word [edi + 6]
add esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
mov dx, word [eax + 6]
call fcn.00482350
mov edx, dword [esp + 0x10]
movzx ecx, ax
mov dword [esp + 0x20], ecx
mov word [edi + 6], ax
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4d8d67
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x2c]
call fcn.004b36d0
test eax, eax
je 0x4d8d67
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4d8d67
cdq
push edx
push eax
call fcn.004823c0
add esp, 8
cmp word [esp + 0x20], ax
jle 0x4d8d67
mov word [edi + 6], ax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4d8f61
mov edx, eax
mov ecx, esi
call fcn.0049d680
jmp 0x4d8f61
cmp dl, 1
jne 0x4d8d90
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
jmp 0x4d8dd1
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x24], edx
push edx
lea eax, [edx + 1]
mov edx, 0x71
mov dword [ecx + 0x28], eax
mov ecx, esi
call fcn.0049ce10
mov dword [edi + 0x18], eax
add esp, 8
mov eax, dword [edi + 0x38]
mov ecx, edi
test eax, eax
je 0x4d8dc9
nop
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x4d8dc0
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 8]
mov ecx, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x6c], 1
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call fcn.004dc910
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4d90fd
cmp byte [edi + 4], 0x81
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x2c], eax
sete al
mov dword [edi + 0x3c], ecx
inc al
movzx ecx, byte [edi + 4]
mov byte [esp + 0x68], al
call fcn.004d6ed0
push eax
push str._s_USING_TEMP_B_TREE
push 1
push esi
call fcn.0049d120
lea eax, [esp + 0x78]
mov edx, edi
push eax
mov ecx, esi
call fcn.004dc910
mov edx, dword [edi + 0x30]
add esp, 0x14
mov dword [esp + 0xc], eax
test edx, edx
je 0x4d8e6d
mov ecx, dword [esp + 0x1c]
call fcn.004b3290
cmp byte [edi + 4], 0x7f
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], 0
jne 0x4d8e99
mov dx, word [eax + 6]
mov cx, word [edi + 6]
call fcn.00482350
mov word [edi + 6], ax
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x4d8ea9
mov ecx, dword [esp + 0x1c]
call fcn.004b20e0
cmp byte [esp + 0x30], 1
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x3c], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
je 0x4d8f65
mov esi, dword [esi + 0x38]
mov eax, dword [esp + 8]
dec esi
mov edx, dword [esp + 0x18]
mov ecx, eax
push esi
mov dword [esp + 0x2c], esi
lea edi, [esi - 1]
mov dword [eax + 0x38], edi
call fcn.004d8030
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0049ce10
push dword [esp + 0x30]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x6c]
push edi
push eax
push 0
push 0
push dword [esp + 0x3c]
call fcn.004d6130
mov edx, edi
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.0049d340
push esi
mov esi, dword [esp + 0x44]
mov edx, 5
push esi
mov ecx, edi
call fcn.0049ce10
mov edx, dword [esp + 0x50]
mov ecx, edi
call fcn.0049d340
push 0
push esi
mov edx, 0x75
mov ecx, edi
call fcn.0049ce10
add esp, 0x30
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 8]
cmp dword [edi + 0x38], 0
jne 0x4d8fa5
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x4d8f79
xor eax, eax
jmp 0x4d8f9f
mov edx, dword [esi + 8]
test ecx, ecx
jns 0x4d8f84
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x4d8f93
mov eax, 0x648de8
jmp 0x4d8f9c
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [esi + 0xd4], eax
test byte [edi + 8], 0x20
je 0x4d90fd
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push 1
mov edx, dword [eax]
mov dword [esp + 0x24], edx
call fcn.004d6d40
add esp, 4
mov dword [esp + 8], eax
test eax, eax
jne 0x4d8fd5
lea esi, [eax + 7]
jmp 0x4d9101
mov edx, dword [esp + 0x20]
add eax, 0x14
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x28], eax
test edx, edx
jle 0x4d9030
nop word [eax + eax]
push eax
mov edx, edi
mov ecx, esi
call fcn.004d8170
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x4d9010
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
add ecx, 4
mov edx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
cmp eax, edx
jl 0x4d8ff0
nop dword [eax + eax]
mov esi, dword [esp + 0x14]
lea eax, [edi + 0x18]
mov edi, dword [esp + 8]
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], eax
nop word [eax + eax]
mov eax, dword [eax]
test eax, eax
js 0x4d90e1
lea ecx, [eax + eax*4]
mov eax, dword [esi]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x4d906f
mov eax, 0x648de8
jmp 0x4d9074
mov eax, dword [esi + 0x68]
add eax, ecx
mov dword [eax + 8], edx
inc dword [edi]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x4d9097
push edi
mov edx, 0xfffffff7
mov ecx, eax
call fcn.0049d830
mov edx, dword [esp + 0x24]
add esp, 4
jmp 0x4d90be
mov eax, dword [esi + 0x68]
add eax, ecx
cmp byte [eax + 1], 0
je 0x4d90b7
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, esi
call fcn.0049d9c0
mov edx, dword [esp + 0x28]
add esp, 8
jmp 0x4d90be
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 2
jl 0x4d9050
mov edi, dword [esp + 0x18]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x4d9030
mov ecx, dword [esp + 8]
call fcn.004d6e00
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4d912a
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 1
call fcn.004d52a0
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 4]
sub eax, 0x80
je 0x4d915c
sub eax, 1
je 0x4d9155
sub eax, 1
je 0x4d914e
mov eax, str.UNION
jmp 0x4d9161
mov eax, str.INTERSECT
jmp 0x4d9161
mov eax, str.EXCEPT
jmp 0x4d9161
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.00480fb0
add esp, 0x10
mov esi, 1
jmp 0x4d9101