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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x6c]
mov edx, dword [eax]
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
push ebp
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 4]
push esi
xor esi, esi
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x10]
push edi
mov edi, dword [ebp + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
cmp dword [edi + 0x30], esi
je 0x46f84d
movzx eax, byte [ebp + 4]
sub eax, 0x74
je 0x46f82b
sub eax, 1
je 0x46f824
sub eax, 1
je 0x46f81d
mov eax, str.UNION
jmp 0x46f830
mov eax, str.INTERSECT
jmp 0x46f830
mov eax, str.EXCEPT
jmp 0x46f830
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov edi, ebx
call fcn.004231b0
add esp, 8
mov dword [esp + 0x10], 1
jmp 0x46ffba
cmp dword [edi + 0x3c], esi
je 0x46f899
movzx eax, byte [ebp + 4]
sub eax, 0x74
je 0x46f88c
sub eax, 1
je 0x46f87f
sub eax, 1
je 0x46f872
mov eax, str.UNION
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x46f836
mov eax, str.INTERSECT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x46f836
mov eax, str.EXCEPT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x46f836
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x46f836
mov eax, ebx
call fcn.0046ee30
mov cl, byte [esp + 0x38]
mov dword [esp + 0x78], eax
cmp cl, 0xc
jne 0x46f8e4
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x78]
push ecx
push edx
push 0x39
call fcn.0043c9d0
mov eax, esi
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
je 0x46f8dc
mov ecx, esi
mov ecx, dword [ecx + 0x20]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
mov cl, 0xe
mov byte [esp + 0x38], cl
xor esi, esi
mov eax, dword [ebp]
mov edx, dword [edi]
mov eax, dword [eax]
cmp eax, dword [edx]
je 0x46f925
test byte [ebp + 6], 0x80
je 0x46f911
push str.all_VALUES_must_have_the_same_number_of_terms
mov edi, ebx
call fcn.004231b0
add esp, 4
mov dword [esp + 0x10], 1
jmp 0x46ffba
movzx eax, byte [ebp + 4]
call fcn.0046db50
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
jmp 0x46f836
mov edx, 0x800
test word [ebp + 6], dx
je 0x46f941
lea eax, [esp + 0x38]
push eax
push ebp
push ebx
call fcn.0046f160
jmp 0x46fe7e
cmp dword [ebp + 0x30], esi
je 0x46f95d
mov ecx, dword [esp + 0x7c]
push ecx
push ebp
push ebx
call fcn.004703c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
movzx eax, byte [ebp + 4]
sub eax, 0x73
je 0x46fc9f
sub eax, 1
je 0x46fba6
sub eax, 1
je 0x46fc9f
mov eax, dword [ebx + 0x44]
mov esi, dword [esp + 0x78]
push 0
push eax
lea edx, [eax + 2]
push 0x39
mov dword [esp + 0x20], eax
mov dword [ebx + 0x44], edx
call fcn.0043c9d0
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x38]
add esp, 0xc
mov eax, ebp
test ecx, ecx
je 0x46f9af
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x46f9a6
or word [eax + 6], 8
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x1d4]
lea edx, [esp + 0x4c]
push edx
xor esi, esi
push edi
push ebx
mov byte [esp + 0x58], 1
mov dword [esp + 0x5c], eax
mov byte [esp + 0x59], 0
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x2c], ecx
call fcn.00473840
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x46ffba
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x7c]
inc eax
push eax
push 0x39
mov dword [esp + 0x38], eax
call fcn.0043c9d0
mov ecx, dword [ebp + 0x40]
mov esi, dword [ebp + 0x3c]
mov edx, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x28], ecx
mov dword [ebp + 0x14], eax
xor eax, eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov eax, dword [ebx + 0x1d4]
push ebp
push ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], eax
call fcn.00473840
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x34], edi
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
add esp, 0xc
mov dword [esp + 0x24], edx
cmp ecx, edi
jb 0x46fa71
ja 0x46fa6b
mov edx, dword [ebp + 0x18]
cmp edx, eax
jbe 0x46fa71
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edi
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.0044de10
mov edx, dword [esp + 0x30]
add esp, 8
cmp byte [esp + 0x38], 9
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], edx
jne 0x46fab7
mov eax, dword [ebp + 0x34]
mov ecx, ebp
test eax, eax
je 0x46faa9
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x46faa0
mov eax, dword [ecx]
push eax
push 0
push ebx
call fcn.0046e5f0
add esp, 0xc
mov edi, dword [esp + 0x78]
mov eax, edi
call fcn.0043cc20
mov esi, eax
mov eax, edi
mov dword [esp + 0x2c], esi
call fcn.0043cc20
mov dword [esp + 0x28], eax
push esi
push ebp
mov eax, ebx
call fcn.0046ee80
mov ecx, dword [esp + 0x1c]
push esi
push ecx
push 0x6c
mov esi, edi
call fcn.0043c9d0
add esp, 0x14
mov eax, ebx
call fcn.00452ad0
mov edx, dword [esp + 0x14]
push eax
push edx
push 0x65
mov dword [esp + 0x3c], eax
call fcn.0043c9d0
mov esi, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push 0
push esi
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
push 0x44
mov eax, edi
call fcn.0043cb70
add esp, 0x14
mov edx, ebx
call fcn.00452af0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [ebp]
lea eax, [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
push ebp
call fcn.0046cf30
mov eax, dword [esp + 0x48]
push eax
mov ecx, edi
call fcn.0043cc70
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
add esp, 0x24
push ecx
push edx
push 9
mov esi, edi
call fcn.0043c9d0
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
mov ecx, edi
call fcn.0043cc70
mov eax, dword [esp + 0x18]
add esp, 4
push 0
inc eax
push eax
push 0x3d
call fcn.0043c9d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
jmp 0x46fe77
mov edx, dword [ebp + 8]
mov dword [edi + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov ecx, dword [ebp + 0x3c]
mov dword [edi + 0x3c], ecx
mov edx, dword [ebp + 0x40]
lea ecx, [esp + 0x38]
push ecx
mov dword [edi + 0x40], edx
mov eax, dword [ebx + 0x1d4]
push edi
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], eax
call fcn.00473840
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
cmp eax, esi
jne 0x46ffba
mov dword [ebp + 0x34], esi
mov edx, dword [edi + 8]
mov dword [ebp + 8], edx
mov eax, dword [edi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, edx
cmp eax, esi
je 0x46fc1a
mov esi, dword [esp + 0x78]
push eax
push 0x8b
call fcn.0043c980
add esp, 8
mov dword [esp + 0x2c], eax
xor esi, esi
mov ecx, dword [ebx + 0x1d4]
lea edx, [esp + 0x38]
push edx
push ebp
push ebx
mov dword [esp + 0x28], ecx
call fcn.00473840
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x34], edi
mov ecx, dword [edi + 0x18]
add esp, 0xc
add dword [ebp + 0x18], ecx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x24], eax
adc dword [ebp + 0x1c], edx
mov edi, dword [edi + 0x3c]
cmp edi, esi
je 0x46fc85
lea eax, [esp + 0x34]
push eax
push edi
call fcn.0044eec0
add esp, 8
test eax, eax
je 0x46fc85
mov eax, dword [esp + 0x34]
cmp eax, esi
jle 0x46fc85
mov ecx, dword [ebp + 0x1c]
cdq
cmp ecx, edx
jb 0x46fc85
ja 0x46fc7f
mov ecx, dword [ebp + 0x18]
cmp ecx, eax
jbe 0x46fc85
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x46fe81
mov edx, dword [esp + 0x78]
call fcn.0043cee0
jmp 0x46fe81
cmp cl, 1
jne 0x46fcae
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
jmp 0x46fce8
mov eax, dword [ebx + 0x44]
mov esi, dword [esp + 0x78]
push 0
push eax
lea ecx, [eax + 1]
push 0x39
mov dword [esp + 0x34], eax
mov dword [ebx + 0x44], ecx
call fcn.0043c9d0
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x38]
add esp, 0xc
mov eax, ebp
test ecx, ecx
je 0x46fce1
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x46fcd8
or word [eax + 6], 8
xor esi, esi
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x1d4]
lea ecx, [esp + 0x60]
push ecx
push edi
push ebx
mov byte [esp + 0x6c], 1
mov dword [esp + 0x70], edx
mov byte [esp + 0x6d], 0
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x2c], eax
call fcn.00473840
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x46ffba
cmp byte [ebp + 4], 0x75
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
sete al
inc al
mov byte [esp + 0x60], al
lea eax, [esp + 0x60]
push eax
mov dword [ebp + 0x34], esi
mov dword [esp + 0x38], edx
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
mov edx, dword [ebx + 0x1d4]
push ebp
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], edx
call fcn.00473840
mov ecx, dword [ebp + 0x30]
mov edx, dword [esp + 0x24]
add esp, 0xc
push ecx
push edx
mov dword [esp + 0x18], eax
call fcn.0044eb50
mov eax, dword [ebp + 0x34]
add esp, 8
cmp byte [ebp + 4], 0x73
mov dword [esp + 0x24], eax
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x30], esi
jne 0x46fd98
mov ecx, dword [edi + 0x18]
add dword [ebp + 0x18], ecx
mov edx, dword [edi + 0x1c]
adc dword [ebp + 0x1c], edx
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.0044de10
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0x40], eax
mov al, byte [esp + 0x40]
add esp, 8
mov dword [ebp + 0x3c], edx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
cmp al, 1
je 0x46fe81
cmp al, 9
jne 0x46fdec
mov eax, dword [ebp + 0x34]
mov ecx, ebp
cmp eax, esi
je 0x46fddf
mov ecx, eax
mov eax, dword [ecx + 0x34]
cmp eax, esi
jne 0x46fdd6
mov ecx, dword [ecx]
push ecx
push esi
push ebx
call fcn.0046e5f0
add esp, 0xc
mov esi, dword [esp + 0x78]
mov eax, esi
call fcn.0043cc20
mov edi, eax
mov eax, esi
mov dword [esp + 0x14], edi
call fcn.0043cc20
mov dword [esp + 0x2c], eax
push edi
push ebp
mov eax, ebx
call fcn.0046ee80
push edi
mov edi, dword [esp + 0x34]
push edi
push 0x6c
call fcn.0043c9d0
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
add esp, 0x14
push eax
mov eax, dword [ebp]
push ecx
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x40]
push edx
push 0
push 0
push edi
push eax
push ebp
call fcn.0046cf30
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.0043cc70
mov edx, dword [esp + 0x58]
add esp, 0x24
push edx
push edi
push 9
call fcn.0043c9d0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
mov ecx, esi
call fcn.0043cc70
add esp, 4
push 0
push edi
push 0x3d
call fcn.0043c9d0
add esp, 0xc
mov al, byte [ebp + 4]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp al, 0x74
setne cl
movzx eax, al
mov edi, ebx
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
call fcn.0046dbc0
add esp, 0xc
test byte [ebp + 6], 8
je 0x46ffba
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push eax
call fcn.0046da20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46fed9
mov dword [esp + 0x10], 7
jmp 0x46ffba
xor edi, edi
cmp dword [esp + 0x28], edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x20], ecx
jle 0x46ff12
push edi
push ebp
push ebx
call fcn.0046eff0
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x46ff06
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
add dword [esp + 0x20], 4
inc edi
cmp edi, dword [esp + 0x28]
jl 0x46fee8
mov ebx, ebp
mov dword [esp + 0x20], ebp
jmp 0x46ff20
mov dword [esp + 0x2c], 0
lea ebp, [ebx + 0x10]
mov eax, dword [ebp]
test eax, eax
jl 0x46ff9d
mov ecx, dword [esp + 0x78]
cmp dword [ecx + 0x20], eax
jbe 0x46ff4d
mov ebx, dword [esp + 0x28]
mov edi, dword [ecx + 4]
lea edx, [eax + eax*4]
mov dword [edi + edx*4 + 8], ebx
mov ebx, dword [esp + 0x20]
inc dword [esi]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x46ff79
cmp byte [edx + 0x40], 0
jne 0x46ff79
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4]
movsx eax, byte [edi + 1]
mov ecx, dword [edi + 0x10]
call fcn.0043cf00
mov dword [edi + 0x10], esi
mov byte [edi + 1], 0xfa
jmp 0x46ff85
mov ecx, esi
mov eax, 0xfffffffa
call fcn.0043cf00
mov eax, dword [esp + 0x2c]
inc eax
mov dword [ebp], 0xffffffff
add ebp, 4
cmp eax, 2
mov dword [esp + 0x2c], eax
jl 0x46ff2b
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x46ff20
add dword [esi], 0xffffffff
jne 0x46ffba
push esi
call fcn.00420a40
add esp, 4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x24]
push eax
push ecx
call fcn.0046c450
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret