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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x70]
push ebx
mov ebx, dword [eax]
mov dword [esp + 0x20], ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0x24], ebx
mov ebx, dword [eax + 8]
mov dword [esp + 0x28], ebx
mov ebx, dword [eax + 0xc]
push ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x30], ebx
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push esi
mov esi, dword [ebp + 0x34]
push edi
mov edi, dword [esp + 0x78]
mov ecx, dword [edi]
xor edx, edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
cmp eax, edx
jne 0x4fcc6c
cmp dword [esi + 0x3c], edx
jne 0x4fcc68
mov ebx, dword [edi + 8]
cmp ebx, edx
jne 0x4fc5c4
cmp dword [edi + 0x74], edx
jne 0x4fc5b9
test byte [ecx + 0x44], 8
jne 0x4fc5b9
mov byte [edi + 0x17], 1
push edi
call fcn.004cbd70
add esp, 4
mov ebx, eax
cmp byte [esp + 0x2c], 0xc
jne 0x4fc5e8
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
push 0
push edx
push eax
push 0x71
push ebx
call fcn.004c5720
add esp, 0x14
mov byte [esp + 0x2c], 0xe
mov eax, dword [ebp + 8]
test eax, 0x400
je 0x4fc60b
lea ecx, [esp + 0x2c]
push ecx
push edi
mov eax, ebp
call fcn.004fc4c0
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x4fccbe
test eax, 0x2000
je 0x4fc626
lea edx, [esp + 0x2c]
push edx
push ebp
push edi
call fcn.004fc060
add esp, 0xc
jmp 0x4fcb4d
cmp dword [ebp + 0x30], 0
je 0x4fc646
mov eax, dword [esp + 0x80]
push eax
push ebp
push edi
call fcn.004efdf0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp dword [esi + 0x34], 0
jne 0x4fc669
push str.COMPOUND_QUERY
push 1
push edi
call fcn.004d4fe0
push str.LEFT_MOST_SUBQUERY
push 1
push edi
call fcn.004d4fe0
add esp, 0x18
movzx eax, byte [ebp + 4]
sub eax, 0x7b
je 0x4fc977
sub eax, 1
je 0x4fc863
sub eax, 1
je 0x4fc977
mov eax, dword [edi + 0x28]
push 0
push 0
push eax
lea ecx, [eax + 2]
push 0x71
push ebx
mov dword [esp + 0x90], eax
mov dword [edi + 0x28], ecx
call fcn.004c5720
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x38]
add esp, 0x14
mov eax, ebp
test ecx, ecx
je 0x4fc6bd
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x4fc6b4
or dword [eax + 8], 0x20
mov edx, dword [esp + 0x7c]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
push esi
push edi
mov byte [esp + 0x50], 1
mov dword [esp + 0x54], edx
call fcn.0050d930
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4fccbe
push eax
push eax
mov eax, dword [esp + 0x84]
inc eax
push eax
push 0x71
push ebx
mov dword [esp + 0x34], eax
call fcn.004c5720
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x1c], eax
xor eax, eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x3c], eax
movzx eax, byte [ebp + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x5c], edx
call fcn.004b8830
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.004d4fe0
lea eax, [esp + 0x68]
push eax
push ebp
push edi
call fcn.0050d930
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x40], eax
mov dword [ebp + 0x34], esi
movzx eax, word [esi + 6]
add esp, 0x30
cmp word [ebp + 6], ax
mov dword [esp + 0x18], ecx
jle 0x4fc76a
mov word [ebp + 6], ax
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x3c]
push edx
call fcn.004c6d80
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x3c], eax
mov eax, ebx
call fcn.004c59c0
mov esi, eax
mov eax, ebx
mov dword [esp + 0x24], esi
call fcn.004c59c0
push esi
push ebp
mov esi, edi
mov dword [esp + 0x28], eax
call fcn.004cd590
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x88]
push 0
push ecx
push edx
push 0x24
push ebx
call fcn.004c5720
mov eax, edi
call fcn.004b6a50
mov esi, eax
mov eax, dword [esp + 0x9c]
push 0
push esi
push eax
push 0x80
push ebx
mov dword [esp + 0x58], esi
call fcn.004c5720
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xb0]
inc eax
push 0
push eax
mov eax, esi
push 0x1c
mov esi, ebx
call fcn.004c5950
mov edx, dword [esp + 0x64]
add esp, 0x40
mov eax, edi
call fcn.004b6a70
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x7c]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 0
push esi
push ebp
mov edx, edi
call fcn.004fb5e0
mov edx, dword [esp + 0x38]
mov ecx, ebx
call fcn.004b3900
mov ecx, dword [esp + 0x44]
push 0
push ecx
push esi
push 5
push ebx
call fcn.004c5720
mov edx, dword [esp + 0x50]
mov ecx, ebx
call fcn.004b3900
push 0
push 0
lea eax, [esi + 1]
push eax
push 0x75
push ebx
call fcn.004c5720
add esp, 0x44
jmp 0x4fcb30
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x2c]
push edx
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x3c]
push esi
push edi
mov dword [esp + 0x2c], 0
mov dword [esi + 0x3c], ecx
call fcn.0050d930
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [ebp + 0x3c], 0
test eax, eax
jne 0x4fccbe
mov dword [ebp + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x4fc8e2
push 0
push 0
push eax
push 0x14
push ebx
call fcn.004c5720
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
add esp, 0x14
test eax, eax
je 0x4fc8e2
mov edx, dword [ebp + 0xc]
push eax
inc eax
push eax
push edx
push 0x99
push ebx
call fcn.004c5720
add esp, 0x14
push 0x5f0358
push 1
push edi
call fcn.004d4fe0
lea eax, [esp + 0x38]
push eax
push ebp
push edi
call fcn.0050d930
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov cx, word [ebp + 6]
mov dword [ebp + 0x34], esi
mov ax, word [esi + 6]
add esp, 0x18
call fcn.004adf00
mov word [ebp + 6], ax
mov esi, dword [esi + 0x3c]
mov word [esp + 0x7c], ax
test esi, esi
je 0x4fc95c
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.004b6520
add esp, 8
test eax, eax
je 0x4fc95c
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4fc95c
cdq
push edx
push eax
call fcn.004adf50
add esp, 8
cmp word [esp + 0x7c], ax
jle 0x4fc95c
mov word [ebp + 6], ax
cmp dword [esp + 0x20], 0
je 0x4fcb40
mov eax, dword [esp + 0x20]
mov edx, ebx
call fcn.004bff30
jmp 0x4fcb40
cmp byte [esp + 0x2c], 1
jne 0x4fc988
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x7c], ecx
jmp 0x4fc9c1
mov eax, dword [edi + 0x28]
push 0
push 0
push eax
lea edx, [eax + 1]
push 0x71
push ebx
mov dword [esp + 0x90], eax
mov dword [edi + 0x28], edx
call fcn.004c5720
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x38]
add esp, 0x14
mov eax, ebp
test ecx, ecx
je 0x4fc9bd
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x4fc9b4
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x64], eax
xor eax, eax
push esi
push edi
mov byte [esp + 0x68], 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
call fcn.0050d930
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4fccbe
mov cl, byte [ebp + 4]
mov edx, dword [ebp + 0x3c]
cmp cl, 0x7d
sete al
inc al
mov byte [esp + 0x5c], al
movzx eax, cl
mov dword [ebp + 0x34], 0
mov dword [esp + 0x28], edx
mov dword [ebp + 0x3c], 0
call fcn.004b8830
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.004d4fe0
lea eax, [esp + 0x6c]
push eax
push ebp
push edi
call fcn.0050d930
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
push ecx
call fcn.004c71d0
mov edx, dword [ebp + 0x34]
add esp, 0x20
cmp byte [ebp + 4], 0x7b
mov dword [esp + 0x18], edx
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x30], 0
jne 0x4fca79
mov ax, word [esi + 6]
mov cx, word [ebp + 6]
call fcn.004adf00
mov word [ebp + 6], ax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 0x3c]
call fcn.004c6d80
mov ecx, dword [esp + 0x2c]
xor eax, eax
add esp, 4
cmp byte [esp + 0x2c], 1
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
je 0x4fcb40
mov eax, ebx
call fcn.004c59c0
mov esi, eax
mov eax, ebx
mov dword [esp + 0x20], esi
call fcn.004c59c0
push esi
push ebp
mov esi, edi
mov dword [esp + 0x24], eax
call fcn.004cd590
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x84]
push 0
push edx
push esi
push 0x24
push ebx
call fcn.004c5720
mov eax, dword [ebx + 0x88]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x50]
push eax
push 0
push 0
push esi
push ebp
mov edx, edi
call fcn.004fb5e0
mov edx, dword [esp + 0x54]
mov ecx, ebx
call fcn.004b3900
mov ecx, dword [esp + 0xb4]
push 0
push ecx
push esi
push 5
push ebx
call fcn.004c5720
mov edx, dword [esp + 0x6c]
add esp, 0x4c
mov ecx, ebx
call fcn.004b3900
push 0
push 0
push esi
push 0x75
push ebx
call fcn.004c5720
add esp, 0x14
cmp dword [ebp + 0x38], 0
jne 0x4fcb4d
mov edx, edi
call fcn.004bfe20
test byte [ebp + 8], 0x20
je 0x4fccbe
mov edx, dword [ebp]
mov eax, dword [edx]
mov edi, dword [esp + 0x14]
push 1
push eax
mov dword [esp + 0x28], eax
call fcn.004c2ae0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4fcb82
mov dword [esp + 0x10], 7
jmp 0x4fccbe
xor esi, esi
cmp dword [esp + 0x20], esi
lea eax, [edi + 0x14]
mov dword [esp + 0x7c], eax
jle 0x4fcbc2
mov ecx, dword [esp + 0x78]
push esi
push ebp
push ecx
call fcn.004efc50
mov edx, dword [esp + 0x88]
add esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x4fcbb6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
add dword [esp + 0x7c], 4
inc esi
cmp esi, dword [esp + 0x20]
jl 0x4fcb91
mov dword [esp + 0x78], ebp
mov esi, dword [esp + 0x78]
xor ebp, ebp
add esi, 0x18
nop
mov eax, dword [esi]
test eax, eax
jl 0x4fcc44
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
je 0x4fcbe5
mov ecx, 0x6413f8
jmp 0x4fcbee
mov ecx, dword [ebx + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x20]
mov dword [ecx + 8], edx
inc dword [edi]
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
je 0x4fcc0d
push 0xfffffffffffffff7
mov eax, edi
call fcn.004bff60
add esp, 4
jmp 0x4fcc35
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x4fcc2e
push edi
push ebx
mov eax, 0xfffffff7
call fcn.004c00f0
add esp, 8
jmp 0x4fcc35
mov dword [ecx + 0x10], edi
mov byte [ecx + 1], 0xf7
mov dword [esi], 0xffffffff
inc ebp
add esi, 4
cmp ebp, 2
jl 0x4fcbd0
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0x34]
mov dword [esp + 0x78], eax
test eax, eax
jne 0x4fcbc6
add dword [edi], 0xffffffff
jne 0x4fccbe
mov ecx, dword [edi + 0xc]
mov eax, edi
call fcn.004acc10
jmp 0x4fccbe
cmp eax, edx
je 0x4fcc73
mov ecx, str.ORDER_BY
jmp 0x4fcc78
mov ecx, str.LIMIT
movzx eax, byte [ebp + 4]
sub eax, 0x7c
je 0x4fcca0
sub eax, 1
je 0x4fcc99
sub eax, 1
je 0x4fcc92
mov eax, str.UNION
jmp 0x4fcca5
mov eax, str.INTERSECT
jmp 0x4fcca5
mov eax, str.EXCEPT
jmp 0x4fcca5
mov eax, 0x5f0358
push eax
push ecx
push str._s_clause_should_come_after__s_not_before
mov esi, edi
call fcn.004d3500
add esp, 0xc
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4fcceb
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c29a0
add esp, 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret