Function at 0x4d7b50
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 0x4d8402
cmp dword [eax + 0x3c], edx
jne 0x4d8402
mov esi, dword [ecx + 8]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4d7bcf
cmp dword [ecx + 0x74], esi
jne 0x4d7bc4
mov eax, dword [esp + 0x1c]
test byte [eax + 0x4c], 8
jne 0x4d7bc4
mov byte [ecx + 0x17], 1
call fcn.0049bd00
mov esi, eax
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x30]
cmp dl, 0xc
jne 0x4d7bf5
mov eax, dword [edi]
mov edx, 0x71
mov ecx, esi
push dword [eax]
push dword [esp + 0x38]
call fcn.0049c0b0
mov dl, 0xe
add esp, 8
mov byte [esp + 0x30], dl
mov eax, dword [edi + 8]
test eax, 0x400
je 0x4d7c8e
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 0x4d7c30
mov edi, eax
add ecx, edx
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x4d7c21
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 8]
cmp ecx, 1
mov edx, 0x6141b4
mov eax, 0x60fec4
cmovne eax, edx
push eax
push ecx
push str.SCAN__d_CONSTANT_ROW_s
push 0
push esi
call fcn.0049c3c0
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.004d5400
add esp, 0x18
cmp dword [esp + 0x20], 0
jne 0x4d7c87
mov eax, dword [esp + 0x28]
mov word [edi + 6], ax
mov edi, dword [edi + 0x38]
test edi, edi
jne 0x4d7c56
xor esi, esi
jmp 0x4d83d1
test eax, 0x2000
je 0x4d7caf
mov esi, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
mov edx, edi
mov ecx, esi
call fcn.004d75d0
add esp, 4
jmp 0x4d8275
cmp dword [edi + 0x30], 0
je 0x4d7ccc
push dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.004d8820
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x34], 0
jne 0x4d7d04
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x10]
call fcn.0049c3c0
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x10]
call fcn.0049c3c0
mov dl, byte [esp + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
movzx eax, byte [edi + 4]
sub eax, 0x7f
je 0x4d8051
sub eax, 1
je 0x4d7f27
sub eax, 1
je 0x4d8051
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.0049c0b0
mov dword [edi + 0x18], eax
add esp, 8
mov eax, dword [edi + 0x38]
mov ecx, edi
test eax, eax
je 0x4d7d60
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x4d7d57
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.004dbbd0
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4d83cd
push eax
push dword [esp + 0x2c]
lea edx, [eax + 0x71]
mov ecx, esi
call fcn.0049c0b0
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.004d61a0
mov esi, dword [esp + 0x10]
push eax
push str._s_USING_TEMP_B_TREE
push 1
push esi
call fcn.0049c3c0
lea eax, [esp + 0x68]
mov edx, edi
push eax
mov ecx, esi
call fcn.004dbbd0
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 0x4d7e27
mov word [edi + 6], ax
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x4d7e37
mov ecx, dword [esp + 0x1c]
call fcn.004b1380
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.004d7300
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x24]
call fcn.0049c0b0
mov ecx, dword [esp + 0x10]
call fcn.004b7bd0
mov ecx, dword [esp + 0x1c]
mov esi, eax
push esi
push dword [esp + 0x2c]
mov edx, 0x7f
call fcn.0049c0b0
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.0049c490
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.004b7bf0
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.004d5400
mov edx, esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.0049c5e0
push edi
mov edi, dword [esp + 0x5c]
mov edx, 5
push edi
mov ecx, esi
call fcn.0049c0b0
mov edx, dword [esp + 0x50]
add esp, 0x40
mov ecx, esi
call fcn.0049c5e0
lea eax, [edi + 1]
mov edx, 0x75
push 0
push eax
mov ecx, esi
call fcn.0049c0b0
push 0
push edi
mov edx, 0x75
mov ecx, esi
call fcn.0049c0b0
add esp, 0x10
jmp 0x4d822d
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.004dbbd0
mov ecx, eax
mov dword [edi + 0x3c], 0
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4d83cd
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 0x4d7fae
push ecx
mov edx, 0x14
mov ecx, esi
call fcn.0049c050
mov ecx, dword [edi + 0x10]
add esp, 4
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x4d7fae
push ecx
inc ecx
mov edx, 0x98
push ecx
push dword [edi + 0xc]
mov ecx, esi
call fcn.0049bf80
add esp, 0xc
push str.UNION_ALL
push 1
push dword [esp + 0x10]
call fcn.0049c3c0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
add esp, 0xc
mov edx, edi
push eax
call fcn.004dbbd0
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.004815e0
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 0x4d8037
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x2c]
call fcn.004b2970
test eax, eax
je 0x4d8037
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4d8037
cdq
push edx
push eax
call fcn.00481650
add esp, 8
cmp word [esp + 0x20], ax
jle 0x4d8037
mov word [edi + 6], ax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4d8231
mov edx, eax
mov ecx, esi
call fcn.0049c920
jmp 0x4d8231
cmp dl, 1
jne 0x4d8060
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
jmp 0x4d80a1
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.0049c0b0
mov dword [edi + 0x18], eax
add esp, 8
mov eax, dword [edi + 0x38]
mov ecx, edi
test eax, eax
je 0x4d8099
nop
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x4d8090
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.004dbbd0
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4d83cd
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.004d61a0
push eax
push str._s_USING_TEMP_B_TREE
push 1
push esi
call fcn.0049c3c0
lea eax, [esp + 0x78]
mov edx, edi
push eax
mov ecx, esi
call fcn.004dbbd0
mov edx, dword [edi + 0x30]
add esp, 0x14
mov dword [esp + 0xc], eax
test edx, edx
je 0x4d813d
mov ecx, dword [esp + 0x1c]
call fcn.004b2530
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 0x4d8169
mov dx, word [eax + 6]
mov cx, word [edi + 6]
call fcn.004815e0
mov word [edi + 6], ax
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x4d8179
mov ecx, dword [esp + 0x1c]
call fcn.004b1380
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 0x4d8235
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.004d7300
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0049c0b0
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.004d5400
mov edx, edi
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.0049c5e0
push esi
mov esi, dword [esp + 0x44]
mov edx, 5
push esi
mov ecx, edi
call fcn.0049c0b0
mov edx, dword [esp + 0x50]
mov ecx, edi
call fcn.0049c5e0
push 0
push esi
mov edx, 0x75
mov ecx, edi
call fcn.0049c0b0
add esp, 0x30
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 8]
cmp dword [edi + 0x38], 0
jne 0x4d8275
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x4d8249
xor eax, eax
jmp 0x4d826f
mov edx, dword [esi + 8]
test ecx, ecx
jns 0x4d8254
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x4d8263
mov eax, 0x647cc8
jmp 0x4d826c
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 0x4d83cd
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push 1
mov edx, dword [eax]
mov dword [esp + 0x24], edx
call fcn.004d6010
add esp, 4
mov dword [esp + 8], eax
test eax, eax
jne 0x4d82a5
lea esi, [eax + 7]
jmp 0x4d83d1
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 0x4d8300
nop word [eax + eax]
push eax
mov edx, edi
mov ecx, esi
call fcn.004d7440
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x4d82e0
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 0x4d82c0
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 0x4d83b1
lea ecx, [eax + eax*4]
mov eax, dword [esi]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x4d833f
mov eax, 0x647cc8
jmp 0x4d8344
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 0x4d8367
push edi
mov edx, 0xfffffff7
mov ecx, eax
call fcn.0049cad0
mov edx, dword [esp + 0x24]
add esp, 4
jmp 0x4d838e
mov eax, dword [esi + 0x68]
add eax, ecx
cmp byte [eax + 1], 0
je 0x4d8387
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, esi
call fcn.0049cc60
mov edx, dword [esp + 0x28]
add esp, 8
jmp 0x4d838e
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 0x4d8320
mov edi, dword [esp + 0x18]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x4d8300
mov ecx, dword [esp + 8]
call fcn.004d60d0
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 0x4d83fa
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 1
call fcn.004d4560
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 0x4d842c
sub eax, 1
je 0x4d8425
sub eax, 1
je 0x4d841e
mov eax, str.UNION
jmp 0x4d8431
mov eax, str.INTERSECT
jmp 0x4d8431
mov eax, str.EXCEPT
jmp 0x4d8431
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.00480240
add esp, 0x10
mov esi, 1
jmp 0x4d83d1