Function at 0x4fc380
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 0x4fcaac
cmp dword [esi + 0x3c], edx
jne 0x4fcaa8
mov ebx, dword [edi + 8]
cmp ebx, edx
jne 0x4fc404
cmp dword [edi + 0x74], edx
jne 0x4fc3f9
test byte [ecx + 0x44], 8
jne 0x4fc3f9
mov byte [edi + 0x17], 1
push edi
call fcn.004cbbb0
add esp, 4
mov ebx, eax
cmp byte [esp + 0x2c], 0xc
jne 0x4fc428
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.004c5570
add esp, 0x14
mov byte [esp + 0x2c], 0xe
mov eax, dword [ebp + 8]
test eax, 0x400
je 0x4fc44b
lea ecx, [esp + 0x2c]
push ecx
push edi
mov eax, ebp
call fcn.004fc300
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x4fcafe
test eax, 0x2000
je 0x4fc466
lea edx, [esp + 0x2c]
push edx
push ebp
push edi
call fcn.004fbea0
add esp, 0xc
jmp 0x4fc98d
cmp dword [ebp + 0x30], 0
je 0x4fc486
mov eax, dword [esp + 0x80]
push eax
push ebp
push edi
call fcn.004efc30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp dword [esi + 0x34], 0
jne 0x4fc4a9
push str.COMPOUND_QUERY
push 1
push edi
call fcn.004d4e20
push str.LEFT_MOST_SUBQUERY
push 1
push edi
call fcn.004d4e20
add esp, 0x18
movzx eax, byte [ebp + 4]
sub eax, 0x7b
je 0x4fc7b7
sub eax, 1
je 0x4fc6a3
sub eax, 1
je 0x4fc7b7
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.004c5570
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x38]
add esp, 0x14
mov eax, ebp
test ecx, ecx
je 0x4fc4fd
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x4fc4f4
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.0050d760
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4fcafe
push eax
push eax
mov eax, dword [esp + 0x84]
inc eax
push eax
push 0x71
push ebx
mov dword [esp + 0x34], eax
call fcn.004c5570
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.004b8670
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.004d4e20
lea eax, [esp + 0x68]
push eax
push ebp
push edi
call fcn.0050d760
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 0x4fc5aa
mov word [ebp + 6], ax
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x3c]
push edx
call fcn.004c6bd0
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x3c], eax
mov eax, ebx
call fcn.004c5810
mov esi, eax
mov eax, ebx
mov dword [esp + 0x24], esi
call fcn.004c5810
push esi
push ebp
mov esi, edi
mov dword [esp + 0x28], eax
call fcn.004cd3d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x88]
push 0
push ecx
push edx
push 0x24
push ebx
call fcn.004c5570
mov eax, edi
call fcn.004b6890
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.004c5570
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.004c57a0
mov edx, dword [esp + 0x64]
add esp, 0x40
mov eax, edi
call fcn.004b68b0
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.004fb420
mov edx, dword [esp + 0x38]
mov ecx, ebx
call fcn.004b3740
mov ecx, dword [esp + 0x44]
push 0
push ecx
push esi
push 5
push ebx
call fcn.004c5570
mov edx, dword [esp + 0x50]
mov ecx, ebx
call fcn.004b3740
push 0
push 0
lea eax, [esi + 1]
push eax
push 0x75
push ebx
call fcn.004c5570
add esp, 0x44
jmp 0x4fc970
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.0050d760
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [ebp + 0x3c], 0
test eax, eax
jne 0x4fcafe
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 0x4fc722
push 0
push 0
push eax
push 0x14
push ebx
call fcn.004c5570
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
add esp, 0x14
test eax, eax
je 0x4fc722
mov edx, dword [ebp + 0xc]
push eax
inc eax
push eax
push edx
push 0x99
push ebx
call fcn.004c5570
add esp, 0x14
push 0x5f0418
push 1
push edi
call fcn.004d4e20
lea eax, [esp + 0x38]
push eax
push ebp
push edi
call fcn.0050d760
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.004add40
mov word [ebp + 6], ax
mov esi, dword [esi + 0x3c]
mov word [esp + 0x7c], ax
test esi, esi
je 0x4fc79c
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.004b6360
add esp, 8
test eax, eax
je 0x4fc79c
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4fc79c
cdq
push edx
push eax
call fcn.004add90
add esp, 8
cmp word [esp + 0x7c], ax
jle 0x4fc79c
mov word [ebp + 6], ax
cmp dword [esp + 0x20], 0
je 0x4fc980
mov eax, dword [esp + 0x20]
mov edx, ebx
call fcn.004bfd80
jmp 0x4fc980
cmp byte [esp + 0x2c], 1
jne 0x4fc7c8
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x7c], ecx
jmp 0x4fc801
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.004c5570
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x38]
add esp, 0x14
mov eax, ebp
test ecx, ecx
je 0x4fc7fd
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x4fc7f4
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.0050d760
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4fcafe
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.004b8670
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.004d4e20
lea eax, [esp + 0x6c]
push eax
push ebp
push edi
call fcn.0050d760
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
push ecx
call fcn.004c7020
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 0x4fc8b9
mov ax, word [esi + 6]
mov cx, word [ebp + 6]
call fcn.004add40
mov word [ebp + 6], ax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 0x3c]
call fcn.004c6bd0
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 0x4fc980
mov eax, ebx
call fcn.004c5810
mov esi, eax
mov eax, ebx
mov dword [esp + 0x20], esi
call fcn.004c5810
push esi
push ebp
mov esi, edi
mov dword [esp + 0x24], eax
call fcn.004cd3d0
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x84]
push 0
push edx
push esi
push 0x24
push ebx
call fcn.004c5570
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.004fb420
mov edx, dword [esp + 0x54]
mov ecx, ebx
call fcn.004b3740
mov ecx, dword [esp + 0xb4]
push 0
push ecx
push esi
push 5
push ebx
call fcn.004c5570
mov edx, dword [esp + 0x6c]
add esp, 0x4c
mov ecx, ebx
call fcn.004b3740
push 0
push 0
push esi
push 0x75
push ebx
call fcn.004c5570
add esp, 0x14
cmp dword [ebp + 0x38], 0
jne 0x4fc98d
mov edx, edi
call fcn.004bfc70
test byte [ebp + 8], 0x20
je 0x4fcafe
mov edx, dword [ebp]
mov eax, dword [edx]
mov edi, dword [esp + 0x14]
push 1
push eax
mov dword [esp + 0x28], eax
call fcn.004c2930
mov edi, eax
add esp, 8
test edi, edi
jne 0x4fc9c2
mov dword [esp + 0x10], 7
jmp 0x4fcafe
xor esi, esi
cmp dword [esp + 0x20], esi
lea eax, [edi + 0x14]
mov dword [esp + 0x7c], eax
jle 0x4fca02
mov ecx, dword [esp + 0x78]
push esi
push ebp
push ecx
call fcn.004efa90
mov edx, dword [esp + 0x88]
add esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x4fc9f6
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 0x4fc9d1
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 0x4fca84
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
je 0x4fca25
mov ecx, 0x6413f8
jmp 0x4fca2e
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 0x4fca4d
push 0xfffffffffffffff7
mov eax, edi
call fcn.004bfdb0
add esp, 4
jmp 0x4fca75
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x4fca6e
push edi
push ebx
mov eax, 0xfffffff7
call fcn.004bff40
add esp, 8
jmp 0x4fca75
mov dword [ecx + 0x10], edi
mov byte [ecx + 1], 0xf7
mov dword [esi], 0xffffffff
inc ebp
add esi, 4
cmp ebp, 2
jl 0x4fca10
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0x34]
mov dword [esp + 0x78], eax
test eax, eax
jne 0x4fca06
add dword [edi], 0xffffffff
jne 0x4fcafe
mov ecx, dword [edi + 0xc]
mov eax, edi
call fcn.004aca50
jmp 0x4fcafe
cmp eax, edx
je 0x4fcab3
mov ecx, str.ORDER_BY
jmp 0x4fcab8
mov ecx, str.LIMIT
movzx eax, byte [ebp + 4]
sub eax, 0x7c
je 0x4fcae0
sub eax, 1
je 0x4fcad9
sub eax, 1
je 0x4fcad2
mov eax, str.UNION
jmp 0x4fcae5
mov eax, str.INTERSECT
jmp 0x4fcae5
mov eax, str.EXCEPT
jmp 0x4fcae5
mov eax, 0x5f0418
push eax
push ecx
push str._s_clause_should_come_after__s_not_before
mov esi, edi
call fcn.004d3340
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 0x4fcb2b
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c27f0
add esp, 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret