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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x5c]
mov edx, dword [eax]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 4]
push esi
mov esi, dword [esp + 0x60]
mov ecx, dword [esi]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
cmp dword [ecx + 0x18], 0
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
je 0x45c630
movzx eax, byte [ebp + 4]
sub eax, 0x71
je 0x45c611
sub eax, 1
je 0x45c60a
sub eax, 1
je 0x45c603
mov eax, str.UNION
jmp 0x45c616
mov eax, str.INTERSECT
jmp 0x45c616
mov eax, str.EXCEPT
jmp 0x45c616
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov edi, esi
call fcn.0041a700
mov dword [esp + 0x70], 1
jmp 0x45cd4e
cmp dword [ecx + 0x28], 0
je 0x45c67d
movzx eax, byte [ebp + 4]
sub eax, 0x71
je 0x45c65e
sub eax, 1
je 0x45c657
sub eax, 1
je 0x45c650
mov eax, str.UNION
jmp 0x45c663
mov eax, str.INTERSECT
jmp 0x45c663
mov eax, str.EXCEPT
jmp 0x45c663
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
mov edi, esi
call fcn.0041a700
mov dword [esp + 0x70], 1
jmp 0x45cd4e
mov ebx, dword [esi + 0xc]
test ebx, ebx
jne 0x45c6a3
mov eax, dword [esp + 0x14]
call fcn.00431fa0
mov ebx, eax
mov dword [esi + 0xc], eax
test ebx, ebx
je 0x45c6a3
push 0x88
call fcn.00432100
add esp, 4
mov dl, byte [esp + 0x30]
cmp dl, 9
jne 0x45c6db
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [esp + 0x34]
push edx
push eax
push 0x29
mov eax, ebx
call fcn.004321b0
mov eax, dword [ebx + 4]
add esp, 0xc
test eax, eax
je 0x45c6d5
mov ecx, dword [ebx + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x10
mov dl, 8
mov byte [esp + 0x30], dl
mov eax, dword [esp + 0x18]
mov edi, dword [ebp]
mov ecx, dword [eax]
mov edi, dword [edi]
cmp edi, dword [ecx]
je 0x45c731
movzx eax, byte [ebp + 4]
sub eax, 0x71
je 0x45c712
sub eax, 1
je 0x45c70b
sub eax, 1
je 0x45c704
mov eax, str.UNION
jmp 0x45c717
mov eax, str.INTERSECT
jmp 0x45c717
mov eax, str.EXCEPT
jmp 0x45c717
mov eax, str.UNION_ALL
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
mov edi, esi
call fcn.0041a700
mov dword [esp + 0x70], 1
jmp 0x45cd4e
xor edi, edi
cmp dword [ebp + 0x18], edi
je 0x45c74f
mov edx, dword [esp + 0x6c]
push edx
push ebp
push esi
call fcn.0045d1a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
movzx ecx, byte [ebp + 4]
sub ecx, 0x70
je 0x45ca56
sub ecx, 1
je 0x45c96d
sub ecx, 1
je 0x45ca56
mov edi, dword [esi + 0x44]
push 0
lea eax, [edi + 2]
mov dword [esi + 0x44], eax
push edi
push 0x29
mov eax, ebx
call fcn.004321b0
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x24]
or word [eax + 6], 8
mov ecx, dword [esi + 0x230]
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x40]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push esi
mov byte [esp + 0x4c], 1
mov dword [esp + 0x50], edi
mov byte [esp + 0x4d], 0
mov dword [esp + 0x30], ecx
call fcn.00460660
add esp, 0xc
mov dword [esp + 0x68], eax
test eax, eax
jne 0x45cd51
push eax
lea eax, [edi + 1]
push eax
push 0x29
mov eax, ebx
call fcn.004321b0
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov dword [ebp + 0x3c], eax
xor eax, eax
add esp, 0xc
mov dword [esp + 0x28], ecx
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
lea ecx, [esp + 0x40]
push ecx
lea eax, [edi + 1]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x230]
push ebp
push esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], eax
call fcn.00460660
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x1c], ecx
fld qword [ecx + 0x48]
fcomp qword [ebp + 0x48]
mov dword [esp + 0x74], eax
add esp, 0xc
mov dword [esp + 0x1c], edx
fnstsw ax
test ah, 5
jp 0x45c844
fld qword [ecx + 0x48]
fstp qword [ebp + 0x48]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0043eed0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add esp, 8
cmp byte [esp + 0x30], 5
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x2c], eax
jne 0x45c88a
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
test eax, eax
je 0x45c87c
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x45c873
mov ecx, dword [ecx]
push ecx
push 0
push esi
call fcn.0045bd30
add esp, 0xc
mov eax, ebx
call fcn.004322b0
mov esi, eax
mov eax, ebx
mov dword [esp + 0x2c], esi
call fcn.004322b0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
push esi
push ebp
call fcn.0045c3d0
push esi
push edi
push 0x41
mov eax, ebx
call fcn.004321b0
mov eax, dword [esp + 0x78]
add esp, 0x14
call fcn.00443370
mov esi, eax
push esi
push edi
push 0x3b
mov eax, ebx
call fcn.004321b0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
mov dword [esp + 0x2c], eax
push 0x31
push ebx
mov eax, esi
lea edx, [edi + 1]
call fcn.00432240
mov edx, dword [esp + 0x70]
add esp, 0xc
call fcn.00443390
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
push esi
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push 0
push edx
push edi
push eax
mov eax, dword [esp + 0x84]
push ebp
push eax
call fcn.0045aa10
mov edx, dword [esp + 0x40]
mov ecx, ebx
call fcn.00432350
mov ecx, dword [esp + 0x50]
push ecx
push edi
push 0x43
mov eax, ebx
call fcn.004321b0
add esp, 0x34
mov edx, esi
mov ecx, ebx
call fcn.00432350
push 0
lea eax, [edi + 1]
push eax
push 0x2b
mov eax, ebx
call fcn.004321b0
add esp, 0xc
push 0
push edi
push 0x2b
mov eax, ebx
call fcn.004321b0
mov esi, dword [esp + 0x70]
jmp 0x45cc3b
mov edx, dword [ebp + 0x28]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp + 0x2c]
mov dword [eax + 0x2c], ecx
mov edx, dword [esi + 0x230]
lea ecx, [esp + 0x30]
push ecx
push eax
push esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x30], edx
call fcn.00460660
add esp, 0xc
mov dword [esp + 0x68], eax
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], edi
cmp eax, edi
jne 0x45cd51
mov dword [ebp + 0x1c], edi
mov edi, dword [esp + 0x18]
mov edx, dword [edi + 0x30]
mov dword [ebp + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [ebp + 0x34], eax
mov eax, edx
test eax, eax
je 0x45c9d2
push eax
push 0x73
mov eax, ebx
call fcn.00432150
add esp, 8
mov dword [esp + 0x64], eax
mov ecx, dword [esi + 0x230]
lea edx, [esp + 0x30]
push edx
push ebp
push esi
mov dword [esp + 0x2c], ecx
call fcn.00460660
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x1c], edi
fld qword [edi + 0x48]
fadd qword [ebp + 0x48]
add esp, 0xc
mov dword [esp + 0x1c], eax
fstp qword [ebp + 0x48]
mov edi, dword [edi + 0x28]
test edi, edi
je 0x45ca30
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.0043fc50
add esp, 8
test eax, eax
je 0x45ca30
fild dword [esp + 0x2c]
fcom qword [ebp + 0x48]
fnstsw ax
test ah, 5
jp 0x45ca2e
fstp qword [ebp + 0x48]
jmp 0x45ca30
fstp st(0)
mov eax, dword [esp + 0x64]
test eax, eax
je 0x45cc3e
mov ecx, dword [ebx + 0x1c]
cmp ecx, eax
jle 0x45cc3e
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
mov dword [eax + edx*4 + 8], ecx
jmp 0x45cc3e
cmp dl, 1
jne 0x45ca6f
cmp dword [ebp + 0x28], edi
jne 0x45ca6f
cmp dword [ebp + 0x2c], edi
jne 0x45ca6f
mov edi, dword [esp + 0x34]
mov dword [esp + 0x64], edi
jmp 0x45ca96
mov edi, dword [esi + 0x44]
push 0
lea ecx, [edi + 1]
push edi
push 0x29
mov eax, ebx
mov dword [esp + 0x70], edi
mov dword [esi + 0x44], ecx
call fcn.004321b0
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x24]
add esp, 0xc
or word [eax + 6], 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x230]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x50]
push eax
push ecx
push esi
mov byte [esp + 0x5c], 1
mov dword [esp + 0x60], edi
mov byte [esp + 0x5d], 0
mov dword [esp + 0x30], edx
call fcn.00460660
add esp, 0xc
mov dword [esp + 0x68], eax
test eax, eax
jne 0x45cd51
cmp byte [ebp + 4], 0x72
mov edx, dword [ebp + 0x28]
sete al
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x2c]
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
lea ecx, [esp + 0x50]
inc al
push ecx
mov byte [esp + 0x54], al
mov eax, dword [esi + 0x230]
push ebp
push esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
call fcn.00460660
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0x20]
add esp, 0xc
push edx
mov dword [esp + 0x6c], eax
call fcn.0043fa90
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp byte [ebp + 4], 0x70
mov dword [esp + 0x1c], eax
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x18], 0
jne 0x45cb50
mov edx, ecx
fld qword [edx + 0x48]
fadd qword [ebp + 0x48]
fstp qword [ebp + 0x48]
mov eax, dword [ebp + 0x28]
push eax
mov ecx, edi
push ecx
call fcn.0043eed0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x2c], eax
mov al, byte [esp + 0x38]
mov dword [ebp + 0x28], edx
xor edx, edx
add esp, 8
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x34], edx
cmp al, 1
je 0x45cc3e
cmp al, 5
jne 0x45cba6
mov eax, dword [ebp + 0x1c]
mov ecx, ebp
cmp eax, edx
je 0x45cb99
mov edi, edi
mov ecx, eax
mov eax, dword [ecx + 0x1c]
cmp eax, edx
jne 0x45cb90
mov ecx, dword [ecx]
push ecx
push edx
push esi
call fcn.0045bd30
add esp, 0xc
mov eax, ebx
call fcn.004322b0
mov edi, eax
mov eax, ebx
call fcn.004322b0
mov dword [esp + 0x18], eax
push edi
push ebp
mov eax, esi
call fcn.0045c3d0
mov edx, dword [esp + 0x6c]
push edi
push edx
push 0x41
mov eax, ebx
call fcn.004321b0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x1c]
add esp, 0x14
push edi
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x70]
push 0xffffffffffffffff
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
mov ecx, dword [eax]
push 0
push ecx
push edx
push eax
push ebp
push esi
call fcn.0045aa10
mov edx, dword [esp + 0x40]
mov ecx, ebx
call fcn.00432350
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x8c]
push eax
push ecx
push 0x43
mov eax, ebx
call fcn.004321b0
add esp, 0x34
mov edx, edi
mov ecx, ebx
call fcn.00432350
mov edx, dword [esp + 0x64]
push 0
push edx
push 0x2b
mov eax, ebx
call fcn.004321b0
add esp, 0xc
mov al, byte [ebp + 4]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp al, 0x71
setne cl
movzx eax, al
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
mov ecx, esi
call fcn.0045b080
add esp, 0xc
test byte [ebp + 6], 8
je 0x45cd51
mov edx, dword [ebp]
mov eax, dword [edx]
mov dword [esp + 0x24], eax
lea edi, [eax + eax*4 + 0x10]
mov eax, dword [esp + 0x14]
call fcn.004188c0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45cc95
mov dword [esp + 0x68], 7
jmp 0x45cd51
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0xc]
mov cl, byte [edx + 0x49]
mov eax, dword [esp + 0x20]
mov byte [eax + 4], cl
mov ecx, dword [esp + 0x24]
mov word [eax + 6], cx
add eax, 0xc
xor edi, edi
mov dword [esp + 0x64], eax
test ecx, ecx
jle 0x45ccea
mov edi, edi
push edi
push ebp
push esi
call fcn.0045c550
mov edx, dword [esp + 0x70]
add esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x45ccde
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x2c]
mov dword [edx], ecx
add dword [esp + 0x64], 4
inc edi
cmp edi, dword [esp + 0x24]
jl 0x45ccc0
mov edi, ebp
mov dword [esp + 0x64], ebp
xor ebp, ebp
lea esi, [edi + 0x38]
mov eax, dword [esi]
test eax, eax
jl 0x45cd34
cmp dword [ebx + 0x1c], eax
jle 0x45cd12
mov edi, dword [esp + 0x24]
mov edx, dword [ebx + 4]
lea ecx, [eax + eax*4]
mov dword [edx + ecx*4 + 8], edi
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, 0xfffffffa
call fcn.004326c0
mov dword [esi], 0xffffffff
inc ebp
add esp, 8
add esi, 4
cmp ebp, 2
jl 0x45ccf5
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x64], edi
test edi, edi
jne 0x45ccf0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.004186a0
add esp, 8
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
je 0x45cd80
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.00459ee0
push esi
push edi
call fcn.004186a0
add esp, 0x10
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret